Skip to content

Commit a975322

Browse files
committed
Add ARM support
1 parent f6ff054 commit a975322

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/docker-image.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ jobs:
2121

2222
- name: Set up Docker Buildx
2323
uses: docker/setup-buildx-action@v2
24+
with:
25+
install: true
26+
27+
- name: Create Buildx Builder
28+
run: |
29+
docker buildx create --name mybuilder --use
30+
docker buildx inspect --bootstrap
2431
2532
- name: Extract Version Components
2633
id: version
@@ -30,11 +37,12 @@ jobs:
3037
echo "MAJOR=${VERSION%%.*}" >> $GITHUB_ENV
3138
echo "MINOR=${VERSION%.*}" >> $GITHUB_ENV
3239
33-
- name: Build and Push Docker Image with Multiple Tags
40+
- name: Build and Push Docker Image with Multiple Tags and Architectures
3441
uses: docker/build-push-action@v4
3542
with:
3643
context: .
3744
push: true
45+
platforms: linux/amd64,linux/arm64 # Specify both amd64 and arm64
3846
tags: |
3947
jonathanschad/react-nestjs-boilerplate:${{ env.VERSION }}
4048
jonathanschad/react-nestjs-boilerplate:${{ env.MAJOR }}

0 commit comments

Comments
 (0)