Skip to content

Commit b440f37

Browse files
committed
Build and push release images if manually run on a tag
Icinga Web 2 already allows triggering this action manually to re-build snapshot images. GitHub already allows triggering actions manually on tags. Latter can be used for release re-build now.
1 parent 796b6c7 commit b440f37

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)