Skip to content

Commit 44d3a8a

Browse files
committed
fix(ci): move explanations of docker tags into fullline comments as endline comments are no longer supported in multiline inputs
see docker/metadata-action#607 for reasoning
1 parent b500712 commit 44d3a8a

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/docker-publish.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,14 @@ jobs:
3939
images: |
4040
ghcr.io/${{ github.repository }}
4141
tags: |
42-
type=sha,enable={{is_default_branch}} # main branch -> tag: `sha-{git-commit-hash}`
43-
type=ref,event=pr,suffix={{sha}} # pull_requests -> tag: `pr-{git-commit-hash}`
44-
type=ref,event=branch,suffix=-{{sha}},enable=${{github.event_name == 'workflow_dispatch'}} # manual builds -> tag: `{branch}-{git-commit-hash}`
45-
type=semver,pattern={{version}} # git tag with semver format -> docker tag: `{version}` (e.g. 1.2.3)
42+
# main branch -> tag: `sha-{git-commit-hash}`
43+
type=sha,enable={{is_default_branch}}
44+
# pull_requests -> tag: `pr-{git-commit-hash}`
45+
type=ref,event=pr,suffix={{sha}}
46+
# manual builds -> tag: `{branch}-{git-commit-hash}`
47+
type=ref,event=branch,suffix=-{{sha}},enable=${{github.event_name == 'workflow_dispatch'}}
48+
# git tag with semver format -> docker tag: `{version}` (e.g. 1.2.3)
49+
type=semver,pattern={{version}}
4650
4751
- name: Build and push image
4852
id: push

0 commit comments

Comments
 (0)