Skip to content

Commit fb4d666

Browse files
committed
Specify platform and use buildx
1 parent eb52f69 commit fb4d666

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ jobs:
6565
password: ${{ secrets.GITHUB_TOKEN }}
6666
# logout at job end:
6767
logout: true
68+
-
69+
name: Set up Docker Buildx
70+
uses: docker/setup-buildx-action@v2
6871
-
6972
name: Build (but not push) builder image
7073
id: docker_build1
@@ -74,7 +77,9 @@ jobs:
7477
file: Dockerfile.build
7578
build-args: base_os=ubuntu
7679
context: .
80+
platforms: linux/amd64
7781
#push: true
82+
load: true
7883
-
7984
name: Image digest
8085
run: echo ${{ steps.docker_build1.outputs.digest }}
@@ -87,7 +92,9 @@ jobs:
8792
file: Dockerfile
8893
build-args: base_tag=local
8994
context: .
95+
platforms: linux/amd64
9096
#push: true
97+
load: true
9198
-
9299
name: Image2 digest
93100
run: echo ${{ steps.docker_build2.outputs.digest }}

0 commit comments

Comments
 (0)