diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 66ea6f5..438af68 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -3,7 +3,7 @@ run-name: Build and push latest on: [push] jobs: - publish: + publish-master: strategy: matrix: image: ["fedora-cpp", "ubuntu-cpp", "fedora-act"] @@ -28,3 +28,29 @@ jobs: push: true tags: "git.skullnet.me/erki/${{ matrix.image }}:latest" file: ${{ matrix.image }}.Dockerfile + + publish-dependencies: + strategy: + matrix: + image: ["fedora-act"] + runs-on: ubuntu-latest + if: gitea.ref == 'refs/heads/master' + steps: + - uses: actions/checkout@v4 + + - name: Setup Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to registry + uses: docker/login-action@v3 + with: + registry: git.skullnet.me + username: ${{ secrets.REGISTRY_USERNAME }} + password: ${{ secrets.REGISTRY_PASSWORD }} + + - name: Build and push + uses: docker/build-push-action@v6 + with: + push: true + tags: "git.skullnet.me/erki/${{ matrix.image }}:latest" + file: ${{ matrix.image }}.Dockerfile