Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deployment: enable multi-arch release images #1643

Merged
merged 1 commit into from
Dec 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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.

12 changes: 10 additions & 2 deletions .github/goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,14 @@ snapshot:

dockers:
- image_templates:
- "pomerium/pomerium:{{ .Tag }}"
- "pomerium/pomerium:amd64-{{ .Tag }}"
dockerfile: .github/Dockerfile-release
binaries:
- pomerium
- 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 All @@ -148,6 +150,12 @@ dockers:
- "--label=repository=http://github.com/pomerium/pomerium"
- "--label=homepage=http://www.pomerium.io"

docker_manifests:
- name_template: "pomerium/pomerium:{{ .Tag }}"
image_templates:
- pomerium/pomerium:arm64v8-{{ .Tag }}
- pomerium/pomerium:amd64-{{ .Tag }}

brews:
- # Name template of the recipe
name: pomerium-cli
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,15 @@ on:
jobs:
goreleaser:
runs-on: ubuntu-latest
env:
DOCKER_CLI_EXPERIMENTAL: "enabled"
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Unshallow
run: git fetch --prune --unshallow

- name: Set up Go
uses: actions/setup-go@v2
with:
Expand Down
6 changes: 6 additions & 0 deletions docs/docs/upgrading.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ With the v0.11.0 release, user impersonation by administrators is now disabled b

The `cache_service_url` parameter has been deprecated since v0.10.0 and is now removed. Please replace it with `databroker_service_url` in your yaml configuration, or `DATABROKER_SERVICE_URL` as an environment variable.

## New

### Docker Multi-Arch Images

With the v0.11.0 release, Pomerium docker images are multi-arch for `arm64` and `amd64`. Individual images for each architecture will continue to be published.

# Since 0.9.0

## Breaking
Expand Down