Skip to content

Commit a2df952

Browse files
committed
add alpine deployed version with -alpine suffix
1 parent bb7c286 commit a2df952

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/docker.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77

88
jobs:
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 }}

0 commit comments

Comments
 (0)