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 14
14
steps :
15
15
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
16
16
17
+ - name : Set up QEMU
18
+ uses : docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # 3.6.0
19
+
17
20
- name : Set up Docker Buildx
18
21
uses : docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
19
22
30
33
username : ${{ github.repository_owner }}
31
34
password : ${{ secrets.GH_TOKEN }}
32
35
33
- - name : Generate build tag
36
+ - name : Generate build tag
34
37
run : |
35
38
TIMESTAMP=$(date +'%Y%m%d')
36
39
SHA=$(git rev-parse --short HEAD)
40
43
uses : docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
41
44
with :
42
45
context : source/typescript-node
46
+ platforms : linux/amd64,linux/arm64
43
47
push : true
44
48
tags : |
45
49
${{ vars.DOCKERHUB_USERNAME }}/typescript-node:${{ env.BUILD_TAG }}
Original file line number Diff line number Diff line change 11
11
steps :
12
12
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
13
13
14
+ - name : Set up QEMU
15
+ uses : docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # 3.6.0
16
+
14
17
- name : Set up Docker Buildx
15
18
uses : docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
16
19
@@ -27,15 +30,15 @@ jobs:
27
30
username : ${{ github.repository_owner }}
28
31
password : ${{ secrets.GH_TOKEN }}
29
32
30
- - name : Generate build tag
33
+ - name : Generate build tag
31
34
run : |
32
35
RELEASE_NAME="${{ github.event.release.name }}"
33
-
36
+
34
37
if [[ -z "$RELEASE_NAME" ]]; then
35
38
echo "Error: Release name is empty"
36
39
exit 1
37
40
fi
38
-
41
+
39
42
# Check if it's a valid semver (with optional 'v' prefix)
40
43
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
41
44
# Strip 'v' prefix if present
50
53
uses : docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
51
54
with :
52
55
context : source/typescript-node
56
+ platforms : linux/amd64,linux/arm64
53
57
push : true
54
58
tags : |
55
59
${{ vars.DOCKERHUB_USERNAME }}/typescript-node:${{ env.BUILD_TAG }}
You can’t perform that action at this time.
0 commit comments