|
7 | 7 | - '**' |
8 | 8 | pull_request: |
9 | 9 | workflow_dispatch: |
| 10 | + release: |
| 11 | + types: [published] |
10 | 12 | schedule: |
11 | 13 | # 1:30am UTC every Sunday, has no particular significance |
12 | 14 | - cron: "30 1 * * 0" |
|
25 | 27 | || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) |
26 | 28 | || github.event_name == 'workflow_dispatch' |
27 | 29 | || github.event_name == 'schedule' |
| 30 | + || github.event_name == 'release' |
28 | 31 |
|
29 | 32 | outputs: |
30 | 33 | DO_DEPLOY: ${{ steps.variables.outputs.DO_DEPLOY }} |
@@ -88,12 +91,14 @@ jobs: |
88 | 91 | ${{ needs.smoke-tests.outputs.DOCKER_REGISTRY_IMAGE }} |
89 | 92 | ${{ needs.smoke-tests.outputs.GITHUB_REGISTRY_IMAGE }} |
90 | 93 | # meta-tags: |
91 | | - # type=schedule means that a tag is applied when the workflow is triggered by a schedule event |
92 | | - # type=ref,event=branch means that a tag is applied when the workflow is triggered by a push to a branch |
| 94 | + # type=schedule, pattern=nightly means that a "nightly" tag is applied when the workflow is triggered by a schedule event |
| 95 | + # type=raw,value=nightly means that a "nightly" tag is applied when the workflow is triggerd by a push to a branch (enabled only for master branch to avoid tagging every push to other branches with "nightly") |
| 96 | + # type=ref,event=branch means that a tag is applied when the workflow is triggered by a push to a branch (enabled only for non-master branches to avoid tagging every push to master branch with the branch name) |
93 | 97 | # type=ref,event=tag means that a tag is applied when the workflow is triggered by a push to a tag |
94 | 98 | meta-tags: | |
95 | | - type=schedule,enable=${{ github.event_name == 'schedule' }} |
96 | | - type=ref,event=branch,enable=${{ github.event_name != 'schedule' }} |
| 99 | + type=schedule,pattern=nightly |
| 100 | + type=raw,value=nightly,enable=${{ github.ref == 'refs/heads/master' }} |
| 101 | + type=ref,event=branch,enable=${{ github.ref != 'refs/heads/master' }} |
97 | 102 | type=ref,event=tag |
98 | 103 | meta-flavor: | |
99 | 104 | latest=${{ startsWith(github.ref, 'refs/tags/') }} |
|
0 commit comments