test: workflow testing [CI Skip]
This commit is contained in:
parent
58a0412091
commit
363aa4e2df
2 changed files with 4 additions and 13 deletions
8
.github/workflows/action-test.yml
vendored
8
.github/workflows/action-test.yml
vendored
|
@ -28,14 +28,6 @@ jobs:
|
||||||
VERSION="${VERSION//v}"
|
VERSION="${VERSION//v}"
|
||||||
TAGS="${DOCKER_IMAGE}:${VERSION},${DOCKER_IMAGE}:${SHORTREF}"
|
TAGS="${DOCKER_IMAGE}:${VERSION},${DOCKER_IMAGE}:${SHORTREF}"
|
||||||
|
|
||||||
# If the VERSION looks like a version number, assume that
|
|
||||||
# this is the most recent version of the image and also
|
|
||||||
# tag it 'latest'.
|
|
||||||
if [[ $VERSION =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then
|
|
||||||
TAGS="$TAGS,${DOCKER_IMAGE}:latest"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
# Set output parameters.
|
# Set output parameters.
|
||||||
echo ::set-output name=tags::${TAGS}
|
echo ::set-output name=tags::${TAGS}
|
||||||
echo ::set-output name=docker_image::${DOCKER_IMAGE}
|
echo ::set-output name=docker_image::${DOCKER_IMAGE}
|
||||||
|
|
9
.github/workflows/docker-multiplatform.yml
vendored
9
.github/workflows/docker-multiplatform.yml
vendored
|
@ -18,12 +18,10 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
DOCKER_IMAGE=${{ secrets.DOCKER_USERNAME }}/${GITHUB_REPOSITORY#*/}
|
DOCKER_IMAGE=${{ secrets.DOCKER_USERNAME }}/${GITHUB_REPOSITORY#*/}
|
||||||
VERSION=latest
|
VERSION=latest
|
||||||
SHORTREF=${GITHUB_SHA::8}
|
SHORTREF=$(git rev-parse --short=8 ${{ inputs.tag }})
|
||||||
|
|
||||||
# If this is git tag, use the tag name as a docker tag
|
VERSION=${{ inputs.tag }}
|
||||||
if [[ $GITHUB_REF == refs/tags/* ]]; then
|
VERSION="${VERSION//v}"
|
||||||
VERSION=${GITHUB_REF#refs/tags/v}
|
|
||||||
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
|
||||||
|
@ -33,6 +31,7 @@ jobs:
|
||||||
TAGS="$TAGS,${DOCKER_IMAGE}:latest"
|
TAGS="$TAGS,${DOCKER_IMAGE}:latest"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Set output parameters.
|
# Set output parameters.
|
||||||
echo ::set-output name=tags::${TAGS}
|
echo ::set-output name=tags::${TAGS}
|
||||||
echo ::set-output name=docker_image::${DOCKER_IMAGE}
|
echo ::set-output name=docker_image::${DOCKER_IMAGE}
|
||||||
|
|
Loading…
Reference in a new issue