diff options
Diffstat (limited to '.github/workflows/android-dockerimage.yml')
-rw-r--r-- | .github/workflows/android-dockerimage.yml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/.github/workflows/android-dockerimage.yml b/.github/workflows/android-dockerimage.yml index c8f594109..d67831e43 100644 --- a/.github/workflows/android-dockerimage.yml +++ b/.github/workflows/android-dockerimage.yml @@ -25,7 +25,10 @@ jobs: - name: set env run: | v=${{ env.VERSION }} - echo "::set-env name=NAME::subsurface/android-build-container:${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/android-build-container${b}:${v}" - name: Build and Publish Linux Docker image to Dockerhub uses: elgohr/Publish-Docker-Github-Action@master |