From f70f28839f5a64d4f62665e93b7fd107045829d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mats=20T=C3=B6rnberg?= Date: Sun, 27 Sep 2026 16:30:16 +0200 Subject: [PATCH] fix ci --- .github/workflows/ci.yml | 30 +++++++++--------------------- 1 file changed, 9 insertions(+), 21 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 973961a..b3d9b1c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,6 +21,7 @@ env: # when the toolchain is new enough (gofmt is part of the Go toolchain in 1.27). GO_VERSION: "1.27" NODE_VERSION: "22" + IMAGE: registry.k6n.net/fancydns jobs: go: @@ -174,7 +175,7 @@ jobs: image: name: Container image - runs-on: ubuntu-latest + runs-on: amd64 needs: [binary] if: github.event_name == 'push' && github.ref == 'refs/heads/main' permissions: @@ -183,24 +184,11 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: docker/setup-buildx-action@v3 + - name: Build + run: | + docker build -t $IMAGE:${{ gitea.sha }} -t $IMAGE:latest . - - name: Log in to the registry - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Build and push - uses: docker/build-push-action@v6 - with: - context: . - push: true - tags: | - ghcr.io/${{ github.repository }}:latest - ghcr.io/${{ github.repository }}:${{ github.sha }} - build-args: | - VERSION=${{ github.sha }} - cache-from: type=gha - cache-to: type=gha,mode=max + - name: Push image + run: | + docker push $IMAGE:${{ gitea.sha }} + docker push $IMAGE:latest \ No newline at end of file