File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 17
17
jobs :
18
18
19
19
build :
20
- name : Build Artifacts
20
+ name : Build Image
21
21
runs-on : ubuntu-latest
22
22
steps :
23
23
- name : Checkout Repository
@@ -35,18 +35,18 @@ jobs:
35
35
tag_with_sha : true
36
36
push : false
37
37
38
- publish :
39
- name : Publish Artifacts
38
+ release :
39
+ name : Release Image
40
40
runs-on : ubuntu-latest
41
41
needs : build
42
- if : github.event_name == 'create' && contains(github.ref, 'refs/tags/')
42
+ if : github.ref == 'refs/heads/master' && github. event_name == 'create' && contains(github.ref, 'refs/tags/')
43
43
steps :
44
44
- name : Checkout Repository
45
45
uses : actions/checkout@v2
46
46
- name : Retrieve Tag
47
47
id : get_version
48
48
run : echo ::set-output name=GIT_TAG::$(echo ${GITHUB_REF/refs\/tags\//} | tr -d v)
49
- - name : Push Image
49
+ - name : Push to Dockerhub
50
50
uses : docker/build-push-action@v1
51
51
with :
52
52
repository : nginx/nginx-prometheus-exporter
You can’t perform that action at this time.
0 commit comments