Skip to content

Commit 54671df

Browse files
authored
Publish docker image on push to main (#26)
* Publish docker image on push to main These images are annotated as "latest". If desired, we can also annotated with the short sha by adding the following line in the tags section of the Extract metadata step: ``` type=sha,format=short,enable={{is_default_branch}} ``` This would improve traceability, but has the downside of quickly filling up the list in: https://github.com/eclipse-csi/pia/pkgs/container/pia/versions Since traceability is not so important for images built off of main, I let it out for now. Signed-off-by: Lukas Puehringer <lukas.puehringer@eclipse-foundation.org> * Minor fixes in publish.yml * Remove redundant release event trigger -> We already listen on tag push * Remove unused/unneeded annotations in "Extract metadata" step. -> We don't care for image annotations of type ref (branch name, pr number, etc.), and we don't even run on PRs Signed-off-by: Lukas Puehringer <lukas.puehringer@eclipse-foundation.org> --------- Signed-off-by: Lukas Puehringer <lukas.puehringer@eclipse-foundation.org>
1 parent db1f7bb commit 54671df

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/publish.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ on:
44
push:
55
tags:
66
- 'v*'
7-
release:
8-
types: [published]
7+
branches:
8+
- main
99
workflow_dispatch:
1010

1111
env:
@@ -39,8 +39,6 @@ jobs:
3939
with:
4040
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
4141
tags: |
42-
type=ref,event=branch
43-
type=ref,event=pr
4442
type=semver,pattern={{version}}
4543
type=semver,pattern={{major}}.{{minor}}
4644
type=semver,pattern={{major}}

0 commit comments

Comments
 (0)