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 7
7
8
8
jobs :
9
9
build-docker :
10
+ strategy :
11
+ matrix :
12
+ version : ["", "-alpine"]
10
13
runs-on : ubuntu-latest
11
14
steps :
12
15
- name : Checkout source
@@ -23,18 +26,20 @@ jobs:
23
26
run : |
24
27
# build only if not release tag, i.e. has some "-" in describe
25
28
# so we do not duplicate work with release workflow.
29
+ dockerfile=Dockerfile${version/-/.}
26
30
git describe --match 'v[0-9]*' | grep -q -e - && \
27
31
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
31
36
32
37
- name : Push Docker image
33
38
run : |
34
39
git describe --match 'v[0-9]*' | grep -q -e - && (
35
40
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}
38
43
)
39
44
env :
40
45
DOCKER_LOGIN : ${{ secrets.DOCKER_LOGIN }}
You can’t perform that action at this time.
0 commit comments