ci: added gitea actions

commit f80f2b021611b77484ace51634df136ef5100c9f
Author: Philippe Loctaux <p@philippeloctaux.com>
Date:   Sun Jul 9 18:30:50 2023 +0200

    cargo update

commit 8055f488d9f764a6f19ed33df79c90acc0caa92b
Author: Philippe Loctaux <p@philippeloctaux.com>
Date:   Sun Jul 9 18:19:25 2023 +0200

    ci: formatting yml

commit a62e37dd3963981717d182c9cd9bce06f6ac9f3a
Author: Philippe Loctaux <p@philippeloctaux.com>
Date:   Sun Jul 9 18:10:49 2023 +0200

    ci: tokei

commit 7c05cc674466a7ae494221d9924e0a84ac1d636f
Author: Philippe Loctaux <p@philippeloctaux.com>
Date:   Sun Jul 9 18:00:50 2023 +0200

    fmt

commit a50c26294984e4f7ac3f96a34d544f26fd71d3a7
Author: Philippe Loctaux <p@philippeloctaux.com>
Date:   Sun Jul 9 17:53:04 2023 +0200

    ci: clippy, fmt check

commit 9e09d900efd6d38aa55c28d0aca71c352d240367
Author: Philippe Loctaux <p@philippeloctaux.com>
Date:   Sun Jul 9 17:35:47 2023 +0200

    ci: dont force all features

commit 1a3fc8d26678b15c66cbaffe4b9581f1fc1d2500
Author: Philippe Loctaux <p@philippeloctaux.com>
Date:   Sun Jul 9 17:34:55 2023 +0200

    removed rust-toolchain.toml

commit ca110d611dc4fc7990b23c2db9853d786a2debd3
Author: Philippe Loctaux <p@philippeloctaux.com>
Date:   Sun Jul 9 17:33:24 2023 +0200

    ci: using full github url

commit ab49ae807e3e2cc96ec0ff2351c67f467b5d88ae
Author: Philippe Loctaux <p@philippeloctaux.com>
Date:   Sun Jul 9 17:32:46 2023 +0200

    ci: added rust workflow

commit ce9393451412327d61585862293209f4380eacec
Author: Philippe Loctaux <p@philippeloctaux.com>
Date:   Sun Jul 9 17:18:44 2023 +0200

    ci: initial commit with gitea actionsss
This commit is contained in:
Philippe Loctaux 2023-07-09 19:02:23 +02:00
parent 1b9243b9ba
commit 1478c516b3
5 changed files with 722 additions and 507 deletions

View file

@ -0,0 +1,34 @@
name: Docker
on:
push:
branches:
- master
jobs:
build-push-docker:
runs-on: node-16-bullseye
container:
image: ubuntu:act-22.04-philt3r
steps:
- name: Get code
uses: actions/checkout@v3
- name: QEMU
uses: docker/setup-qemu-action@v2
- name: Docker Buildx
uses: docker/setup-buildx-action@v2
with:
driver-opts: image=moby/buildkit:buildx-stable-1-philt3r
- name: Login to Container Registry
uses: docker/login-action@v2
with:
registry: git.philt3r
username: ${{ gitea.repository_owner }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v4
env:
ACTIONS_RUNTIME_TOKEN: ''
with:
push: true
tags: git.philt3r/${{ gitea.repository }}:latest

28
.gitea/workflows/rust.yml Normal file
View file

@ -0,0 +1,28 @@
name: Rust
on: [push]
jobs:
rust:
runs-on: node-16-bullseye
container:
image: ubuntu:act-22.04-philt3r
steps:
- name: Get code
uses: actions/checkout@v3
# rust
- name: Rust toolchain
uses: https://github.com/dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- run: cargo test
- run: cargo clippy
- run: cargo fmt --check
# tokei
- name: Install tokei
uses: https://github.com/brndnmtthws/rust-action-cargo-binstall@v1
with:
packages: tokei
- name: Tokei
run: tokei -C -s code

1163
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -2,4 +2,4 @@
fn main() {
// trigger recompilation when a new migration is added
println!("cargo:rerun-if-changed=migrations");
}
}

View file

@ -1,2 +0,0 @@
[toolchain]
channel = "nightly"