Skip to content

Commit 99e61d2

Browse files
[feat] update the github workflow
1 parent 3af1667 commit 99e61d2

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/main.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,18 @@ jobs:
2626
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
2727
restore-keys: ${{ runner.os }}-npm-
2828

29-
- name: Build Docker image for tests
29+
- name: Build test image
3030
uses: docker/build-push-action@v6
3131
with:
3232
context: .
3333
file: Dockerfile.dev
3434
tags: angular-app-test:latest
35+
platforms: linux/amd64
3536
load: true
3637
cache-from: type=local,src=/tmp/.buildx-cache
3738
cache-to: type=local,dest=/tmp/.buildx-cache,mode=max
3839

39-
- name: Run Jest tests in container
40+
- name: Run Jest tests inside container
4041
run: |
4142
docker run --rm \
4243
--workdir /app \
@@ -79,13 +80,13 @@ jobs:
7980
username: ${{ secrets.DOCKER_USERNAME }}
8081
password: ${{ secrets.DOCKERHUB_TOKEN }}
8182

82-
- name: Build and push production image
83+
- name: Build and push multi-arch production image
8384
uses: docker/build-push-action@v6
8485
with:
8586
context: .
8687
file: Dockerfile
8788
push: true
88-
platforms: linux/amd64
89+
platforms: linux/amd64,linux/arm64
8990
tags: |
9091
${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKERHUB_PROJECT_NAME }}:latest
9192
${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKERHUB_PROJECT_NAME }}:${{ steps.meta.outputs.SHORT_SHA }}

0 commit comments

Comments
 (0)