From 1bbad6e6ca37ceed1b39f239ebe8c8047be6483e Mon Sep 17 00:00:00 2001 From: TheSpad Date: Sat, 11 Feb 2023 18:25:20 +0000 Subject: [PATCH] Pass version as build arg --- .github/workflows/BuildImage.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/BuildImage.yml b/.github/workflows/BuildImage.yml index da4715e..3831cdd 100644 --- a/.github/workflows/BuildImage.yml +++ b/.github/workflows/BuildImage.yml @@ -17,7 +17,7 @@ jobs: run: | FLOOD_VERSION=$(curl -s https://api.github.com/repos/johman10/flood-for-transmission/releases/latest | jq -rc ".tag_name") echo "FLOOD_VERSION=${FLOOD_VERSION}" >> $GITHUB_ENV - docker build --no-cache -t ${{ github.sha }} . + docker build --no-cache --build-arg FLOOD_VERSION=${FLOOD_VERSION} -t ${{ github.sha }} . - name: Tag image if: ${{ github.ref == format('refs/heads/{0}-{1}', env.BASEIMAGE, env.MODNAME) }}