fix image build on tag / main
This commit is contained in:
parent
7e2462ed62
commit
d9143f55ce
|
|
@ -15,7 +15,10 @@ runs:
|
|||
id: vars
|
||||
run: |
|
||||
echo ::set-output name=sha_short::${GITHUB_SHA::7}
|
||||
TAG=${GITHUB_REF/refs\/tags\//}
|
||||
TAG=${GITHUB_REF##*/}
|
||||
if [ "main" == "${TAG} ]; then
|
||||
TAG=canary
|
||||
fi
|
||||
echo ::set-output name=tag::${TAG:-canary}
|
||||
shell: bash
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue