Erki 6e64808237
Some checks failed
Build and push latest / publish (ubuntu-cpp) (push) Waiting to run
Build and push latest / publish (fedora-act) (push) Failing after 21s
Build and push latest / publish (fedora-cpp) (push) Has been cancelled
Fix build order and specify external dependency
2024-09-18 13:15:59 +03:00

31 lines
797 B
YAML

name: Build and push latest
run-name: Build and push latest
on: [push]
jobs:
publish:
strategy:
matrix:
image: ["fedora-cpp", "ubuntu-cpp", "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: "erki/${{ matrix.image }}:latest"
file: ${{ matrix.image }}.Dockerfile