File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 77
88jobs :
99 build-docker :
10+ strategy :
11+ matrix :
12+ version : ["", "-alpine"]
1013 runs-on : ubuntu-latest
1114 steps :
1215 - name : Checkout source
@@ -23,18 +26,20 @@ jobs:
2326 run : |
2427 # build only if not release tag, i.e. has some "-" in describe
2528 # so we do not duplicate work with release workflow.
29+ dockerfile=Dockerfile${version/-/.}
2630 git describe --match 'v[0-9]*' | grep -q -e - && \
2731 docker build \
28- -t nipy/heudiconv:master \
29- -t nipy/heudiconv:unstable \
30- .
32+ -t nipy/heudiconv:master${version} \
33+ -t nipy/heudiconv:unstable${version} \
34+ . \
35+ -f $dockerfile
3136
3237 - name : Push Docker image
3338 run : |
3439 git describe --match 'v[0-9]*' | grep -q -e - && (
3540 docker login -u "$DOCKER_LOGIN" --password-stdin <<<"$DOCKER_TOKEN"
36- docker push nipy/heudiconv:master
37- docker push nipy/heudiconv:unstable
41+ docker push nipy/heudiconv:master${version}
42+ docker push nipy/heudiconv:unstable${version}
3843 )
3944 env :
4045 DOCKER_LOGIN : ${{ secrets.DOCKER_LOGIN }}
You can’t perform that action at this time.
0 commit comments