build: extract github.ref_name expression to env mapping (#10624)
Signed-off-by: Chris Nyhuis <cnyhuis@vigilantnow.com>
This commit is contained in:
@@ -1062,7 +1062,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
version=${VERSION#v}
|
version=${VERSION#v}
|
||||||
repo=ghcr.io/${{ github.repository_owner }}/${{ matrix.image }}
|
repo=ghcr.io/${{ github.repository_owner }}/${{ matrix.image }}
|
||||||
ref="${{github.ref_name}}"
|
ref="${REF_NAME}"
|
||||||
ref=${ref//\//-} # slashes to dashes
|
ref=${ref//\//-} # slashes to dashes
|
||||||
|
|
||||||
# List of tags for ghcr.io
|
# List of tags for ghcr.io
|
||||||
@@ -1081,6 +1081,8 @@ jobs:
|
|||||||
echo Pushing to $tags
|
echo Pushing to $tags
|
||||||
echo "DOCKER_TAGS=$tags" >> $GITHUB_ENV
|
echo "DOCKER_TAGS=$tags" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
env:
|
||||||
|
REF_NAME: ${{github.ref_name}}
|
||||||
- name: Prepare context dir
|
- name: Prepare context dir
|
||||||
run: |
|
run: |
|
||||||
mkdir ctx
|
mkdir ctx
|
||||||
|
|||||||
Reference in New Issue
Block a user