From 3cc8acddfd91254ed3f5c0685f88377f585ba7dd Mon Sep 17 00:00:00 2001 From: Jared Trouth Date: Thu, 13 Jun 2024 12:28:08 -0500 Subject: [PATCH] Update tagging logic --- .github/workflows/build-and-push.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-push.yaml b/.github/workflows/build-and-push.yaml index 953f73d8..9ec7e517 100644 --- a/.github/workflows/build-and-push.yaml +++ b/.github/workflows/build-and-push.yaml @@ -72,7 +72,7 @@ jobs: id: deploy-tag run: | # Parse container image tag to deploy - full_tag=$(echo "$DOCKER_METADATA_OUTPUT_JSON" | jq -r '.tags[] | limit(1; select(. | test(":sha-|:v.")))') + full_tag=$(echo "$DOCKER_METADATA_OUTPUT_JSON" | jq -r '.tags[0]') echo "Will use tag \"$full_tag\" for deployment." echo image_tag=$(echo "$full_tag" | cut -f2 -d:) >> "$GITHUB_OUTPUT" echo image_name=$(echo "$full_tag" | cut -f1 -d:) >> "$GITHUB_OUTPUT"