Conditions for special tags published to container registries.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
7e55f8b3d7
commit
936893e6c6
2 changed files with 13 additions and 5 deletions
4
.github/workflows/publish.yml
vendored
4
.github/workflows/publish.yml
vendored
|
|
@ -65,7 +65,7 @@ jobs:
|
|||
!failure() && !cancelled()
|
||||
&& inputs.machines
|
||||
&& inputs.docker_repo != ''
|
||||
&& github.ref == 'refs/heads/main'
|
||||
&& (github.ref == 'refs/heads/main' || contains(github.ref, 'refs/tags/'))
|
||||
|
||||
name: Containers
|
||||
runs-on: ${{matrix.machine}}
|
||||
|
|
@ -115,6 +115,8 @@ jobs:
|
|||
acct: ${{github.actor}}
|
||||
repo: ${{github.repository}}
|
||||
docker_repo: ${{inputs.docker_repo}}
|
||||
docker_tag_latest: ${{ contains(github.ref, 'refs/tags/') && !contains(github.ref, '-rc') }}
|
||||
docker_tag_preview: ${{ contains(github.ref, 'refs/tags/') && contains(github.ref, '-rc') }}
|
||||
|
||||
run: |
|
||||
docker/bake.sh "${{matrix.bake_target}}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue