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) }}