Skip to content

Commit

Permalink
fix: add support for tags
Browse files Browse the repository at this point in the history
When we need to build images when a tag is created
with this commit those images will be prefixed with
`tag-<SHA>`. This way we can write ECR lifecycle polices
which will filter images based on tag prefixes in order
to decide how much time or how many images to keep.
  • Loading branch information
arminioa committed Jan 23, 2024
1 parent c0dfd29 commit 87ecd6f
Show file tree
Hide file tree
Showing 5 changed files with 77,487 additions and 52,742 deletions.
3 changes: 2 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,10 @@ inputs:
required: false
description: >
This flag can be used to disable automatically tagging images with prefixes
based on the type of build: on master or on pull rquest.
based on the type of build: on master branch or on pull rquest or when a tag is created in GitHub.
An image built from a pull request is tagged with pr-<number>-<SHA>.
An image built on merge to master branch is tagged with master-<SHA>.
An image built from a tag is tagged with tag-<SHA>.
useqemu:
required: false
description: >
Expand Down
Loading

0 comments on commit 87ecd6f

Please sign in to comment.