Update BuildImage.yml

This commit is contained in:
Eric Nemchik
2020-11-02 11:53:55 -06:00
committed by GitHub
parent 3e33ec6a70
commit 8963e74ee7
+4 -1
View File
@@ -15,7 +15,10 @@ jobs:
- name: Build image
run: |
docker build --no-cache -t ${{ github.sha }} .
# Build variables
VERSION=$(git describe --tags --always)
# Build image
docker build --no-cache --build-arg VERSION=${VERSION} -t ${{ github.sha }} .
- name: Tag image
if: ${{ github.ref == format('refs/heads/{0}-{1}', env.BASEIMAGE, env.MODNAME) }}