Skip to content

Commit

Permalink
Merge pull request #278 from anchore/prerelease-fix
Browse files Browse the repository at this point in the history
chore: ensure pre-release images don't overide latest tag
  • Loading branch information
bradleyjones authored Jul 19, 2024
2 parents 764a291 + bf2dfef commit 825322d
Showing 1 changed file with 31 additions and 2 deletions.
33 changes: 31 additions & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ changelog:
dockers:
- image_templates:
- "anchore/ecs-inventory:latest"
- "anchore/ecs-inventory:{{ .Tag }}-amd64"
- "anchore/ecs-inventory:v{{ .Major }}-amd64"
- "anchore/ecs-inventory:v{{ .Major }}.{{ .Minor }}-amd64"
dockerfile: Dockerfile
Expand All @@ -78,9 +77,22 @@ dockers:
- "--build-arg=BUILD_VERSION={{.Version}}"
- "--build-arg=VCS_REF={{.FullCommit}}"
- "--build-arg=VCS_URL={{.GitURL}}"
skip_push: auto

- image_templates:
- "anchore/ecs-inventory:{{ .Tag }}-amd64"
dockerfile: Dockerfile
use: buildx
ids:
- generic
build_flag_templates:
- "--platform=linux/amd64"
- "--build-arg=BUILD_DATE={{.Date}}"
- "--build-arg=BUILD_VERSION={{.Version}}"
- "--build-arg=VCS_REF={{.FullCommit}}"
- "--build-arg=VCS_URL={{.GitURL}}"

- image_templates:
- "anchore/ecs-inventory:{{ .Tag }}-arm64v8"
- "anchore/ecs-inventory:v{{ .Major }}-arm64v8"
- "anchore/ecs-inventory:v{{ .Major }}.{{ .Minor }}-arm64v8"
goarch: arm64
Expand All @@ -94,6 +106,21 @@ dockers:
- "--build-arg=BUILD_VERSION={{.Version}}"
- "--build-arg=VCS_REF={{.FullCommit}}"
- "--build-arg=VCS_URL={{.GitURL}}"
skip_push: auto

- image_templates:
- "anchore/ecs-inventory:{{ .Tag }}-arm64v8"
goarch: arm64
dockerfile: Dockerfile
use: buildx
ids:
- generic
build_flag_templates:
- "--platform=linux/arm64/v8"
- "--build-arg=BUILD_DATE={{.Date}}"
- "--build-arg=BUILD_VERSION={{.Version}}"
- "--build-arg=VCS_REF={{.FullCommit}}"
- "--build-arg=VCS_URL={{.GitURL}}"

- image_templates:
- "anchore/ecs-inventory:{{ .Tag }}-fips-amd64"
Expand All @@ -118,6 +145,7 @@ docker_manifests:
- anchore/ecs-inventory:{{ .Tag }}-arm64v8
- anchore/ecs-inventory:v{{ .Major }}-arm64v8
- anchore/ecs-inventory:v{{ .Major }}.{{ .Minor }}-arm64v8
skip_push: auto
- name_template: anchore/ecs-inventory:latest
image_templates:
- anchore/ecs-inventory:{{ .Tag }}-amd64
Expand All @@ -127,4 +155,5 @@ docker_manifests:
- anchore/ecs-inventory:{{ .Tag }}-arm64v8
- anchore/ecs-inventory:v{{ .Major }}-arm64v8
- anchore/ecs-inventory:v{{ .Major }}.{{ .Minor }}-arm64v8
skip_push: auto

0 comments on commit 825322d

Please sign in to comment.