From 8963e74ee725d5dd65deee4de956fb7bee4210c5 Mon Sep 17 00:00:00 2001 From: Eric Nemchik Date: Mon, 2 Nov 2020 11:53:55 -0600 Subject: [PATCH] Update BuildImage.yml --- .github/workflows/BuildImage.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/BuildImage.yml b/.github/workflows/BuildImage.yml index 6d83a2c..1eabef5 100644 --- a/.github/workflows/BuildImage.yml +++ b/.github/workflows/BuildImage.yml @@ -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) }}