mirror of
https://github.com/linuxserver/docker-mods.git
synced 2026-02-04 20:49:31 +08:00
Pass version as build arg
This commit is contained in:
parent
91669dcbbd
commit
1bbad6e6ca
2
.github/workflows/BuildImage.yml
vendored
2
.github/workflows/BuildImage.yml
vendored
@ -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) }}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user