Skip to content

Commit

Permalink
Fixed docker image publish job (#7)
Browse files Browse the repository at this point in the history
* Fixed image build and publish
* Disabled multi-arch image testing
  • Loading branch information
azun committed Aug 3, 2023
1 parent fc05690 commit e34e337
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/docker-image-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
id: go
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

# Login against a Docker registry except on PR
# https://github.com/docker/login-action
Expand Down Expand Up @@ -59,11 +59,10 @@ jobs:
# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
- name: Build and push Docker image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
context: .
build-args: |
ARCH=amd64
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
2 changes: 1 addition & 1 deletion .github/workflows/staging-image-tester.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ jobs:
go get -v -t -d ./...
- name: Test
run: make build.image/multiarch
run: make build.image
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ COPY go.sum .
RUN go mod download

COPY . .
RUN make build

FROM alpine:3.18

Expand Down

0 comments on commit e34e337

Please sign in to comment.