We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47cfb1e commit cacbc3eCopy full SHA for cacbc3e
1 file changed
.github/workflows/docker-image.yml
@@ -65,11 +65,21 @@ jobs:
65
username: ${{ secrets.DOCKER_HUB_USERNAME }}
66
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
67
68
+ - name: Set platforms
69
+ id: set_platforms
70
+ run: |
71
+ echo "github ref: ${GITHUB_REF}"
72
+ if [[ "${GITHUB_REF##*/}" == "main" || "${GITHUB_REF##*/}" == "dev" ]]; then
73
+ echo "platforms=linux/amd64,linux/arm64" >> $GITHUB_OUTPUT
74
+ else
75
+ echo "platforms=linux/amd64" >> $GITHUB_OUTPUT
76
+ fi
77
+
78
- name: Build and push
79
uses: docker/build-push-action@v6
80
with:
81
context: .
- platforms: linux/amd64,linux/arm64
82
+ platforms: ${{ steps.set_platforms.outputs.platforms }}
83
push: true
84
#${{ github.event_name != 'push' && github.event_name != 'pull_request' }}
85
tags: ${{ steps.meta.outputs.tags }}
0 commit comments