From b90499ca5db7bc909480546314be76911e0e1132 Mon Sep 17 00:00:00 2001 From: Bill Church Date: Sat, 30 Jul 2022 10:31:18 -0400 Subject: [PATCH] chore: workflow testing --- .github/workflows/action-test.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/action-test.yml b/.github/workflows/action-test.yml index 7346ae6..dd69649 100644 --- a/.github/workflows/action-test.yml +++ b/.github/workflows/action-test.yml @@ -28,6 +28,14 @@ jobs: VERSION="${VERSION//v}" 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. echo ::set-output name=tags::${TAGS} echo ::set-output name=docker_image::${DOCKER_IMAGE}