Skip to content

Commit

Permalink
fix: workaround for tailscale/github-action#108
Browse files Browse the repository at this point in the history
  • Loading branch information
jamezrin committed Dec 10, 2024
1 parent 5a263c0 commit bd55f9e
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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: .
Expand Down

0 comments on commit bd55f9e

Please sign in to comment.