Skip to content

Commit

Permalink
move arm to distroless and share dockerfile for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
travisgroth committed Dec 2, 2020
1 parent 22e1b53 commit 93f3ddf
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 38 deletions.
4 changes: 3 additions & 1 deletion .github/Dockerfile-release
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
ARG ARCH

FROM busybox:latest as build
RUN touch /config.yaml

FROM gcr.io/distroless/base
FROM gcr.io/distroless/base-debian10:latest-${ARCH}
ENV AUTOCERT_DIR /data/autocert
WORKDIR /pomerium
COPY pomerium* /bin/
Expand Down
12 changes: 0 additions & 12 deletions .github/Dockerfile-release.arm32v6

This file was deleted.

12 changes: 0 additions & 12 deletions .github/Dockerfile-release.arm32v7

This file was deleted.

12 changes: 0 additions & 12 deletions .github/Dockerfile-release.arm64v8

This file was deleted.

4 changes: 3 additions & 1 deletion .github/goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ dockers:
- pomerium-cli
build_flag_templates:
- "--pull"
- "--build-arg=ARCH=amd64"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
Expand All @@ -134,12 +135,13 @@ dockers:
- goarch: arm64
image_templates:
- "pomerium/pomerium:arm64v8-{{ .Tag }}"
dockerfile: .github/Dockerfile-release.arm64v8
dockerfile: .github/Dockerfile-release
binaries:
- pomerium
- pomerium-cli
build_flag_templates:
- "--pull"
- "--build-arg=ARCH=arm64"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
Expand Down

0 comments on commit 93f3ddf

Please sign in to comment.