Skip to content

Commit

Permalink
feat(发布): 不用注释了,直接平时打测试包不打arm,而发tag才打
Browse files Browse the repository at this point in the history
  • Loading branch information
zhendery committed Jan 24, 2025
1 parent 37c125e commit a634b3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
with:
context: .
file: src/Dockerfile
#platforms: linux/amd64,linux/arm64
platforms: ${{ startsWith(github.ref, 'refs/tags/') && 'linux/amd64,linux/arm64' || 'linux/amd64' }}
push: true
tags: ghcr.io/${{ env.LOWERCASE_IMAGE_NAME }}:${{ github.ref_name }}
cache-from: type=gha
Expand All @@ -91,7 +91,7 @@ jobs:
with:
context: .
file: src/Dockerfile
#platforms: linux/amd64,linux/arm64
platforms: linux/amd64,linux/arm64
push: true
tags: |
${{ env.LOWERCASE_IMAGE_NAME }}:latest
Expand Down

0 comments on commit a634b3c

Please sign in to comment.