name: Cargo Build & Test on: push: pull_request: env: CARGO_TERM_COLOR: always jobs: push: name: Push to container registry runs-on: ubuntu-latest container: image: 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/xeovalyte/workout - 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 }}