Skip to content

Commit 2ff6cf9

Browse files
authored
Pushing YYYY.MM tags again (#158)
* Pushing YYYY.MM tags again It appears this broke with the move to multi-arch workflow. I updated the syntax to fix this issue based on [some docker/metadata-action documentation](https://github.com/docker/metadata-action?tab=readme-ov-file#major-version-zero). I think the limitation might be the Python script which generates this. * Fix multiple Docker tag setup for multiarch workflow
1 parent ef26e42 commit 2ff6cf9

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/publish-on-push-to-main.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ jobs:
1818
images: octodns/${{matrix.flavor}}
1919
labels: org.opencontainers.image.documentation=https://github.com/octodns/octodns#readme
2020
org.opencontainers.image.licenses=MIT
21-
tags: type=raw,value={{date 'YYYY.MM'}} type=raw,value=latest,enable={{is_default_branch}}
21+
tags: 'type=raw,value={{date ''YYYY.MM''}},enable={{is_default_branch}}
22+
23+
type=raw,value=latest,enable={{is_default_branch}}'
2224
- name: login to docker.io registry
2325
uses: docker/login-action@v3
2426
with:

script/generate-workflow-files

+2-2
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ def write_publish_workflow(flavors):
108108
'flavor': 'latest=false',
109109
'tags': ''
110110
# set dated tag
111-
'type=raw,value={{date \'YYYY.MM\'}}'
111+
'type=raw,value={{date \'YYYY.MM\'}},enable={{is_default_branch}}'
112112
# set latest tag for default branch
113-
' type=raw,value=latest,enable={{is_default_branch}}',
113+
'\ntype=raw,value=latest,enable={{is_default_branch}}',
114114
'labels': ''
115115
'org.opencontainers.image.documentation=https://github.com/octodns/octodns#readme'
116116
' org.opencontainers.image.licenses=MIT'

0 commit comments

Comments
 (0)