Skip to content

Commit

Permalink
Merge pull request #13 from pfnet-research/fix-multi-arch
Browse files Browse the repository at this point in the history
Fix a failure to build arm64 image
  • Loading branch information
superbrothers authored Apr 19, 2022
2 parents 3bd6313 + 938cdd0 commit 073d471
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: make docker-build
- run: make docker-build-all
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# syntax = docker/dockerfile:1
FROM golang:1.18 AS base
FROM --platform=$BUILDPLATFORM golang:1.18 AS base
WORKDIR /workspace
ENV CGO_ENABLED=0
COPY go.* .
Expand Down Expand Up @@ -31,7 +31,7 @@ RUN --mount=target=. \
FROM scratch AS export
COPY --from=build /out/alertmanager-to-github /

FROM gcr.io/distroless/static:nonroot-${TARGETARCH}
FROM --platform=$BUILDPLATFORM gcr.io/distroless/static:nonroot
COPY --from=build /out/alertmanager-to-github /
ENTRYPOINT ["/alertmanager-to-github"]
CMD ["start"]

0 comments on commit 073d471

Please sign in to comment.