mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-18 08:48:27 -04:00
Pass version as build arg
This commit is contained in:
@@ -17,7 +17,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
FLOOD_VERSION=$(curl -s https://api.github.com/repos/johman10/flood-for-transmission/releases/latest | jq -rc ".tag_name")
|
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
|
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
|
- name: Tag image
|
||||||
if: ${{ github.ref == format('refs/heads/{0}-{1}', env.BASEIMAGE, env.MODNAME) }}
|
if: ${{ github.ref == format('refs/heads/{0}-{1}', env.BASEIMAGE, env.MODNAME) }}
|
||||||
|
|||||||
Reference in New Issue
Block a user