Skip to content

Is this possible to tag docker images with latest only when it's not a prerelease ? #4042

Answered by caarlos0
eddycharly asked this question in Q&A
Discussion options

You must be logged in to vote
kos:
  - repository: ghcr.io/kyverno/playground
    tags:
      - '{{.Tag}}'
      - '{{ if not .Prerelease }}latest{{ end }}' 

Can you check if this works?

EDIT: fixed typo

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@eddycharly
Comment options

@eddycharly
Comment options

@caarlos0
Comment options

@eddycharly
Comment options

@eddycharly
Comment options

Answer selected by eddycharly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants