From bd55f9e31411939026a70f9e398b2ffc152b4cb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Mart=C3=ADnez=20Rinc=C3=B3n?= Date: Tue, 10 Dec 2024 23:58:12 +0100 Subject: [PATCH] fix: workaround for https://github.com/tailscale/github-action/issues/108 --- .github/workflows/main.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 96d1617..06fa1e6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,6 +20,10 @@ jobs: oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }} oauth-secret: ${{ secrets.TS_OAUTH_SECRET }} tags: tag:ci + - name: Add hosts to /etc/hosts + run: | + registry_ip=$(sudo dig +short ${{ env.REGISTRY }}) + echo "$registry_ip ${{ env.REGISTRY }}" | sudo tee -a /etc/hosts - name: Login to registry uses: docker/login-action@v3 with: @@ -30,16 +34,7 @@ jobs: uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - - name: Build - uses: docker/build-push-action@v6 - with: - context: . - platforms: ${{ env.IMAGE_ARCH }} - push: false - tags: | - ${{ env.REGISTRY }}/${{ env.IMAGE_PROJECT }}/${{ env.IMAGE_NAME }} - ${{ env.REGISTRY }}/${{ env.IMAGE_PROJECT }}/${{ env.IMAGE_NAME }}:latest - - name: Push + - name: Build and push uses: docker/build-push-action@v6 with: context: .