Skip to content

Commit e34e337

Browse files
committed
Fixed docker image publish job (#7)
* Fixed image build and publish * Disabled multi-arch image testing
1 parent fc05690 commit e34e337

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.github/workflows/docker-image-push.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ jobs:
2727
- name: Checkout repository
2828
uses: actions/checkout@v2
2929

30-
- name: Set up Go
31-
uses: actions/setup-go@v2
32-
with:
33-
go-version: 1.17
34-
id: go
30+
- name: Set up QEMU
31+
uses: docker/setup-qemu-action@v2
32+
33+
- name: Set up Docker Buildx
34+
uses: docker/setup-buildx-action@v2
3535

3636
# Login against a Docker registry except on PR
3737
# https://github.com/docker/login-action
@@ -59,11 +59,10 @@ jobs:
5959
# Build and push Docker image with Buildx (don't push on PR)
6060
# https://github.com/docker/build-push-action
6161
- name: Build and push Docker image
62-
uses: docker/build-push-action@v2
62+
uses: docker/build-push-action@v4
6363
with:
6464
context: .
65-
build-args: |
66-
ARCH=amd64
65+
platforms: linux/amd64,linux/arm64
6766
push: ${{ github.event_name != 'pull_request' }}
6867
tags: ${{ steps.meta.outputs.tags }}
6968
labels: ${{ steps.meta.outputs.labels }}

.github/workflows/staging-image-tester.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ jobs:
3434
go get -v -t -d ./...
3535
3636
- name: Test
37-
run: make build.image/multiarch
37+
run: make build.image

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ COPY go.sum .
2424
RUN go mod download
2525

2626
COPY . .
27+
RUN make build
2728

2829
FROM alpine:3.18
2930

0 commit comments

Comments
 (0)