Skip to content

Commit ed2cbff

Browse files
committed
Build docker images for amd64 and arm64
1 parent ef914ab commit ed2cbff

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.github/workflows/continuous_delivery.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,16 @@ jobs:
1818
name: Test
1919
runs-on: ubuntu-latest
2020
steps:
21-
- name: Setup
21+
- name: Checkout
22+
uses: actions/checkout@v2
23+
24+
- name: Setup go
2225
uses: actions/setup-go@v2
2326
with:
2427
go-version: '1.16'
2528

26-
- name: Checkout
27-
uses: actions/checkout@v2
29+
- name: Set up docker buildx
30+
uses: docker/setup-buildx-action@v1
2831

2932
- name: Build
3033
run: make build

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,10 @@ gcloud-auth:
142142
# docker images
143143
# =============================================================================
144144
image:
145-
DOCKER_BUILDKIT=1 docker build -t $(DOCKER_TAG_DOCKERHUB) .
145+
docker buildx build --platform linux/amd64,linux/arm64 -t $(DOCKER_TAG_DOCKERHUB) .
146146

147-
imagepush: image
148-
docker push $(DOCKER_TAG_DOCKERHUB)
147+
imagepush:
148+
docker buildx build --push --platform linux/amd64,linux/arm64 -t $(DOCKER_TAG_DOCKERHUB) .
149149

150150

151151
# =============================================================================

0 commit comments

Comments
 (0)