From 69583b7e41ac5488f1d6945195560fb524a2ab84 Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Mon, 16 Sep 2024 14:29:46 +0200 Subject: [PATCH] .gitea/workflows/gitea-ci.yaml aktualisiert --- .gitea/workflows/gitea-ci.yaml | 43 ++++++++++++++++++++-------------- 1 file changed, 25 insertions(+), 18 deletions(-) diff --git a/.gitea/workflows/gitea-ci.yaml b/.gitea/workflows/gitea-ci.yaml index 2912773..801f812 100644 --- a/.gitea/workflows/gitea-ci.yaml +++ b/.gitea/workflows/gitea-ci.yaml @@ -2,28 +2,35 @@ # .gitea/workflows/gitea-ci.yaml # -name: Build And Test +name: Build And Push run-name: ${{ gitea.actor }} is runs ci pipeline on: [ push ] jobs: - publish: - runs-on: cth-ubuntu-latest - needs: build - if: gitea.ref == 'refs/heads/main' + release-image: + runs-on: ubuntu-latest steps: - - uses: https://github.com/actions/checkout@v4 - - name: Set up Docker Buildx - uses: https://github.com/docker/setup-buildx-action@v3 - with: + - name: Checkout + uses: actions/checkout@v3 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + + - name: Set up Docker BuildX + uses: docker/setup-buildx-action@v2 + with: # replace it with your local IP config-inline: | - [registry."registry.tuxnet.lan"] + [registry."registry.tuxnet.lan"] http = true - insecure = true - - name: Build and push Docker image - uses: https://github.com/docker/build-push-action@v5 - with: - context: . - file: ./Dockerfile - push: true - tags: "registry.tuxnet.lan/web/dokuwiki:${{gitea.sha}}" \ No newline at end of file + insecure = true + + - name: Build and push + uses: docker/build-push-action@v4 + with: + context: . + file: ./Dockerfile + platforms: | + linux/amd64 + push: true + tags: | # replace it with your local IP and tags + registry.tuxnet.lan/web/dokuwiki:20240206.2.0-debian-12-r3 \ No newline at end of file