Skip to content

Commit e87dc1c

Browse files
committed
multiplatform test
1 parent eaf2b25 commit e87dc1c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/action-docker-test.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
name: build dev image
66
permissions:
77
packages: write
8-
runs-on: ubuntu-latest
8+
runs-on: [ubuntu-latest, ubuntu-latest-arm64]
99
steps:
1010
- name: checkout
1111
uses: actions/checkout@v4
@@ -21,10 +21,11 @@ jobs:
2121
uses: docker/build-push-action@v6
2222
with:
2323
push: true
24+
platforms: ${{ runner.os }}/${{ runner.arch }}
2425
build-args: |
25-
VERSION=dev
26+
VERSION=dev-${{ runner.os }}-${{ runner.arch }}
2627
tags: |
27-
ghcr.io/vladopajic/go-test-coverage:dev
28+
ghcr.io/vladopajic/go-test-coverage:dev-${{ runner.os }}-${{ runner.arch }}
2829
2930
- uses: actions/delete-package-versions@v5
3031
with:
@@ -52,7 +53,7 @@ jobs:
5253

5354
- name: set action image version to dev
5455
run: |
55-
yq e -i '.runs.image = "docker://ghcr.io/vladopajic/go-test-coverage:dev"' action.yml
56+
yq e -i '.runs.image = "docker://ghcr.io/vladopajic/go-test-coverage:dev-${{ runner.os }}-${{ runner.arch }}"' action.yml
5657
image=$(yq '.runs.image' action.yml)
5758
echo "Image: $image"
5859

0 commit comments

Comments
 (0)