aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/linux-dockerimage.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/linux-dockerimage.yml')
-rw-r--r--.github/workflows/linux-dockerimage.yml5
1 files changed, 4 insertions, 1 deletions
diff --git a/.github/workflows/linux-dockerimage.yml b/.github/workflows/linux-dockerimage.yml
index 9dd0106c8..e978132a8 100644
--- a/.github/workflows/linux-dockerimage.yml
+++ b/.github/workflows/linux-dockerimage.yml
@@ -23,7 +23,10 @@ jobs:
- name: set env
run: |
v=${{ env.VERSION }}
- echo "::set-env name=NAME::subsurface/trusty-qt512:${v}"
+ b=${{ github.ref }} # -BRANCH suffix, unless the branch is master
+ b=${b/refs\/heads\//}
+ if [ $b = "master" ] ; then b="" ; else b="-$b" ; fi
+ echo "::set-env name=NAME::subsurface/trusty-qt512${b}:${v}"
- name: Build and Publish Linux Docker image to Dockerhub
uses: elgohr/Publish-Docker-Github-Action@master