From b048870400737419bbc9bd58a3fa68fa23b4bf4c Mon Sep 17 00:00:00 2001 From: Erki Date: Wed, 18 Sep 2024 12:21:45 +0300 Subject: [PATCH] CI implementation --- .gitea/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .gitea/workflows/ci.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..1b58c9e --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,30 @@ +name: Build and push latest +run-name: Build and push latest +on: [push] + +jobs: + publish: + strategy: + matrix: + image: ["fedora-act", "fedora-cpp", "ubuntu-cpp"] + 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: false + tags: "erki/${{ matrix.image }}:latest" + file: ${{ matrix.image }}.Dockerfile