File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 1414 steps :
1515 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1616
17+ - name : Set up QEMU
18+ uses : docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # 3.6.0
19+
1720 - name : Set up Docker Buildx
1821 uses : docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
1922
3033 username : ${{ github.repository_owner }}
3134 password : ${{ secrets.GH_TOKEN }}
3235
33- - name : Generate build tag
36+ - name : Generate build tag
3437 run : |
3538 TIMESTAMP=$(date +'%Y%m%d')
3639 SHA=$(git rev-parse --short HEAD)
4043 uses : docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
4144 with :
4245 context : source/typescript-node
46+ platforms : linux/amd64,linux/arm64
4347 push : true
4448 tags : |
4549 ${{ vars.DOCKERHUB_USERNAME }}/typescript-node:${{ env.BUILD_TAG }}
Original file line number Diff line number Diff line change 1111 steps :
1212 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1313
14+ - name : Set up QEMU
15+ uses : docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # 3.6.0
16+
1417 - name : Set up Docker Buildx
1518 uses : docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
1619
@@ -27,15 +30,15 @@ jobs:
2730 username : ${{ github.repository_owner }}
2831 password : ${{ secrets.GH_TOKEN }}
2932
30- - name : Generate build tag
33+ - name : Generate build tag
3134 run : |
3235 RELEASE_NAME="${{ github.event.release.name }}"
33-
36+
3437 if [[ -z "$RELEASE_NAME" ]]; then
3538 echo "Error: Release name is empty"
3639 exit 1
3740 fi
38-
41+
3942 # Check if it's a valid semver (with optional 'v' prefix)
4043 if [[ "$RELEASE_NAME" =~ ^v?[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?(\+[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?$ ]]; then
4144 # Strip 'v' prefix if present
5053 uses : docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
5154 with :
5255 context : source/typescript-node
56+ platforms : linux/amd64,linux/arm64
5357 push : true
5458 tags : |
5559 ${{ vars.DOCKERHUB_USERNAME }}/typescript-node:${{ env.BUILD_TAG }}
You can’t perform that action at this time.
0 commit comments