Added actions
Some checks failed
Cargo Build & Test / Timo's Workouts - latest (beta) (push) Failing after 23s
Cargo Build & Test / Timo's Workouts - latest (nightly) (push) Failing after 3s
Cargo Build & Test / Timo's Workouts - latest (stable) (push) Failing after 3s
Cargo Build & Test / Push to container registry (push) Failing after 2s
Some checks failed
Cargo Build & Test / Timo's Workouts - latest (beta) (push) Failing after 23s
Cargo Build & Test / Timo's Workouts - latest (nightly) (push) Failing after 3s
Cargo Build & Test / Timo's Workouts - latest (stable) (push) Failing after 3s
Cargo Build & Test / Push to container registry (push) Failing after 2s
This commit is contained in:
53
.gitea/workflows/ci.yml
Normal file
53
.gitea/workflows/ci.yml
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
name: Cargo Build & Test
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
env:
|
||||||
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build_and_test:
|
||||||
|
name: Timo's Workouts - latest
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
toolchain:
|
||||||
|
- stable
|
||||||
|
- beta
|
||||||
|
- nightly
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
|
||||||
|
- run: cargo build --verbose
|
||||||
|
- run: cargo test --verbose
|
||||||
|
|
||||||
|
push:
|
||||||
|
name: Push to container registry
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- run: rustup update stable && rustup default stable
|
||||||
|
|
||||||
|
- name: Login in to the container registry
|
||||||
|
uses: docker/login-action
|
||||||
|
with:
|
||||||
|
registry: gitea.xeovalyte.dev
|
||||||
|
username: ${{ gitea.actor }}
|
||||||
|
password: ${{ secrets.GITEA_TOKEN }}
|
||||||
|
|
||||||
|
- name: Extract metadata
|
||||||
|
id: meta
|
||||||
|
uses: docker/metadata-action
|
||||||
|
with:
|
||||||
|
images: gitea.xeovalyte.dev/${{ gitea.repository }}
|
||||||
|
|
||||||
|
- name: Build an publish
|
||||||
|
id: push
|
||||||
|
uses: docker/build-push-action
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
push: true
|
||||||
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
labels: ${{ steps.meta.outputs.labels }}
|
Reference in New Issue
Block a user