Skip to content

Commit d06378d

Browse files
committed
fix: image cleanup exludes general main tag
1 parent 7736116 commit d06378d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.github/workflows/clean-main-images.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@ jobs:
3232
keep-n-tagged: ${{ env.KEEP_X_IMAGES }}
3333
delete-ghost-images: true
3434
delete-partial-images: true
35+
exclude-tags: 'main'

.github/workflows/main.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
images: ${{env.REGISTRY}}/${{env.IMAGE_NAME}}
3838
tags: |
3939
type=raw,value={{branch}}-{{date 'YYYYMMDDHHmmss'}}
40+
type=raw,value={{branch}}
4041
4142
- name: Log in to the Container registry
4243
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0

0 commit comments

Comments
 (0)