deployment: Fix docker and rpm workflows (#1687)

* fix cli rpm extension

* update `latest` logic for multi-arch manifests
This commit is contained in:
Travis Groth 2020-12-14 15:12:57 -05:00 committed by GitHub
parent 7c29581264
commit d1194ef6e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 6 deletions

View file

@ -285,4 +285,4 @@ nfpms:
replacements:
arm64: aarch64
amd64: x86_64
file_name_template: '{{ .ProjectName }}-cli-{{ .Version }}-{{ .Release }}_{{ .Arch }}{{ if .Arm }}{{if eq .Arm "7"}}hf{{ end }}{{ end }}'
file_name_template: '{{ .ProjectName }}-cli-{{ .Version }}-{{ .Release }}.{{ .Arch }}{{ if .Arm }}{{if eq .Arm "7"}}hf{{ end }}{{ end }}'

View file

@ -84,11 +84,8 @@ jobs:
- name: Publish latest tag
if: "env.LATEST_TAG == steps.tagName.outputs.tag"
run: |
docker tag pomerium/pomerium:${{ env.LATEST_TAG }} pomerium/pomerium:latest
docker push pomerium/pomerium:latest
docker tag pomerium/pomerium:arm64v8-${{ env.LATEST_TAG }} pomerium/pomerium:arm64v8-latest
docker push pomerium/pomerium:arm64v8-latest
docker manifest create -a pomerium/pomerium:latest pomerium/pomerium:amd64-${{ env.LATEST_TAG }} pomerium/pomerium:arm64v8-${{ env.LATEST_TAG }}
docker manifest push pomerium/pomerium:latest
docker tag gcr.io/pomerium-io/pomerium:${{ env.LATEST_TAG }}-cloudrun gcr.io/pomerium-io/pomerium:latest-cloudrun
docker push gcr.io/pomerium-io/pomerium:latest-cloudrun