Skip to content

Commit 244a110

Browse files
authored
Merge pull request #139 from Icinga/rebuild
Build and push release images if manually run on a tag
2 parents 796b6c7 + b440f37 commit 244a110

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ runs:
2525
run: |
2626
docker login -u icingaadmin --password-stdin <<<"$PW"
2727
28-
- if: github.event_name == 'release'
28+
- if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.ref_type == 'tag')
2929
shell: bash
3030
run: |
3131
'${{ github.action_path }}/build.bash' . release push "$(tr -d v <<<'${{ github.ref_name }}')"
3232
'${{ github.action_path }}/mktags.bash' '${{ github.ref_name }}'
3333
34-
- if: github.event_name == 'workflow_dispatch' || github.event_name == 'schedule'
34+
- if: github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && github.ref_type != 'tag')
3535
shell: bash
3636
run: |
3737
'${{ github.action_path }}/build.bash' . snapshot push "$(tr / - <<<'${{ github.ref_name }}')"

0 commit comments

Comments
 (0)