chore: update workflow
This commit is contained in:
parent
8c8ca7da4a
commit
d7a245d974
1 changed files with 2 additions and 2 deletions
4
.github/workflows/docker-multiplatform.yml
vendored
4
.github/workflows/docker-multiplatform.yml
vendored
|
@ -18,13 +18,13 @@ jobs:
|
||||||
id: prep
|
id: prep
|
||||||
run: |
|
run: |
|
||||||
DOCKER_IMAGE=${{ secrets.DOCKER_USERNAME }}/${GITHUB_REPOSITORY#*/}
|
DOCKER_IMAGE=${{ secrets.DOCKER_USERNAME }}/${GITHUB_REPOSITORY#*/}
|
||||||
VERSION=latest
|
VERSION=main
|
||||||
SHORTREF=${GITHUB_SHA::8}
|
SHORTREF=${GITHUB_SHA::8}
|
||||||
# If this is git tag, use the tag name as a docker tag
|
# If this is git tag, use the tag name as a docker tag
|
||||||
if [[ $GITHUB_REF == refs/tags/* ]]; then
|
if [[ $GITHUB_REF == refs/tags/* ]]; then
|
||||||
VERSION=${GITHUB_REF#refs/tags/v}
|
VERSION=${GITHUB_REF#refs/tags/v}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
TAGS="${DOCKER_IMAGE}:${VERSION},${DOCKER_IMAGE}:${SHORTREF}"
|
TAGS="${DOCKER_IMAGE}:${VERSION},${DOCKER_IMAGE}:${SHORTREF}"
|
||||||
# If the VERSION looks like a version number, assume that
|
# If the VERSION looks like a version number, assume that
|
||||||
# this is the most recent version of the image and also
|
# this is the most recent version of the image and also
|
||||||
|
|
Loading…
Reference in a new issue