Skip to content

Commit

Permalink
fix: only push latest images on finished build
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Jan 17, 2025
1 parent 588adb9 commit 4e909e2
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion build.tmpl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,7 @@ docker_manifests:
# Name template for the manifest.
# Defaults to empty.
name_template: "oryd/{{ .ProjectName }}:v{{ .Major }}"
skip_push: auto

# Image name templates to be added to this manifest.
# Defaults to empty.
Expand All @@ -526,6 +527,7 @@ docker_manifests:
# Name template for the manifest.
# Defaults to empty.
name_template: "oryd/{{ .ProjectName }}:v{{ .Major }}.{{ .Minor }}"
skip_push: auto

# Image name templates to be added to this manifest.
# Defaults to empty.
Expand All @@ -541,6 +543,7 @@ docker_manifests:
# Name template for the manifest.
# Defaults to empty.
name_template: "oryd/{{ .ProjectName }}:v{{ .Major }}.{{ .Minor }}.{{ .Patch }}"
skip_push: auto

# Image name templates to be added to this manifest.
# Defaults to empty.
Expand All @@ -551,11 +554,25 @@ docker_manifests:
- "oryd/{{ .ProjectName }}:{{ .Tag }}-armv6"

- # ID of the manifest, needed if you want to filter by it later on (e.g. on custom publishers).
id: distroless
id: patch-distroless

# Name template for the manifest.
# Defaults to empty.
name_template: "oryd/{{ .ProjectName }}:v{{ .Major }}.{{ .Minor }}.{{ .Patch }}-distroless"
skip_push: auto

# Image name templates to be added to this manifest.
# Defaults to empty.
image_templates:
- "oryd/{{ .ProjectName }}:{{ .Tag }}-amd64-distroless"
- "oryd/{{ .ProjectName }}:{{ .Tag }}-arm64-distroless"

- # ID of the manifest, needed if you want to filter by it later on (e.g. on custom publishers).
id: tag-distroless

# Name template for the manifest.
# Defaults to empty.
name_template: "oryd/{{ .ProjectName }}:{{ .Tag }}-distroless"

# Image name templates to be added to this manifest.
# Defaults to empty.
Expand All @@ -569,6 +586,7 @@ docker_manifests:
# Name template for the manifest.
# Defaults to empty.
name_template: "oryd/{{ .ProjectName }}:latest"
skip_push: auto

# Image name templates to be added to this manifest.
# Defaults to empty.
Expand Down

0 comments on commit 4e909e2

Please sign in to comment.