Commit af2e9ed 1 parent 37dad2b commit af2e9ed Copy full SHA for af2e9ed
File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,9 @@ name: atlantis-image
3
3
on :
4
4
push :
5
5
branches :
6
- - " master"
7
- release :
8
- types :
9
- - " published"
6
+ - ' master'
7
+ tags :
8
+ - ' v*.*.*'
10
9
workflow_dispatch :
11
10
12
11
jobs :
@@ -47,10 +46,10 @@ jobs:
47
46
48
47
# Publish release to container registry
49
48
- name : populate release version
50
- if : ${{ github.event_name == 'release' }}
49
+ if : ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }}
51
50
run : echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
52
51
- name : Build and push atlantis:${{ env.RELEASE_VERSION }} image
53
- if : ${{ github.event_name == 'release' }}
52
+ if : ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }}
54
53
uses : docker/build-push-action@v2
55
54
with :
56
55
context : .
You can’t perform that action at this time.
0 commit comments