Files
workout/.gitea/workflows/ci.yml
Timo Boomers 5887e083d9
Some checks failed
Cargo Build & Test / Push to container registry (push) Has been cancelled
changed container
2025-07-18 10:33:49 +02:00

40 lines
981 B
YAML

name: Cargo Build & Test
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
push:
name: Push to container registry
runs-on: catthehacker/ubuntu:act-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: rustup update stable && rustup default stable
- name: Login in to the container registry
uses: docker/login-action@v3
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 }}