We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 83f434f + 73166b6 commit e43c04fCopy full SHA for e43c04f
1 file changed
.github/workflows/pr-docker-hato-bot.yml
@@ -2,9 +2,9 @@
2
name: deploy
3
4
on:
5
- push:
6
- branches:
7
- - master
+ release:
+ types:
+ - published
8
pull_request:
9
10
jobs:
@@ -38,8 +38,10 @@ jobs:
38
env:
39
HEAD_REF: ${{github.head_ref}}
40
if: ${{ github.event_name == 'pull_request' }}
41
- - run: echo 'TAG_NAME=latest' >> "$GITHUB_ENV"
42
- if: ${{ github.event_name == 'push' }}
+ - run: |
+ echo 'TAG_NAME=v${{ github.event.release.tag_name }}' >> "$GITHUB_ENV"
43
+ echo 'TAG_NAME=latest' >> "$GITHUB_ENV"
44
+ if: ${{ github.event_name == 'relase' }}
45
- name: Build docker image
46
run: docker-compose build --build-arg BUILDKIT_INLINE_CACHE=1
47
- name: Start docker
0 commit comments