File tree Expand file tree Collapse file tree 2 files changed +13
-10
lines changed Expand file tree Collapse file tree 2 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -130,12 +130,15 @@ jobs:
130
130
runs-on : ubuntu-latest
131
131
132
132
steps :
133
- - uses : actions/checkout@v1.2.0
133
+ - uses : actions/checkout@v2
134
134
- name : Build Docker image
135
- run : |
136
- docker build . \
137
- --file docker/Dockerfile \
138
- --build-arg BASE_IMAGE=python:3.7-slim \
139
- --tag pyhf/pyhf:$GITHUB_SHA \
140
- --compress
141
- docker images
135
+ if : " !(startsWith(github.ref, 'refs/tags/'))"
136
+ uses : docker/build-push-action@v1
137
+ with :
138
+ repository : pyhf/pyhf
139
+ dockerfile : docker/Dockerfile
140
+ tag_with_sha : true
141
+ tag_with_ref : true
142
+ push : false
143
+ - name : List built images
144
+ run : docker images
Original file line number Diff line number Diff line change 15
15
steps :
16
16
- uses : actions/checkout@master
17
17
- name : Build and Publish to Registry
18
- if : " ! ${{ startsWith(github.ref, 'refs/tags/') }} "
18
+ if : " !( startsWith(github.ref, 'refs/tags/')) "
19
19
uses : docker/build-push-action@v1
20
20
with :
21
21
username : ${{ secrets.DOCKER_USERNAME }}
24
24
dockerfile : docker/Dockerfile
25
25
tags : latest
26
26
- name : Build and Publish to Registry with Release Tag
27
- if : ${{ startsWith(github.ref, 'refs/tags/') }}
27
+ if : startsWith(github.ref, 'refs/tags/')
28
28
uses : docker/build-push-action@v1
29
29
with :
30
30
username : ${{ secrets.DOCKER_USERNAME }}
You can’t perform that action at this time.
0 commit comments