File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 7878 NEW_TAG=$(echo "$VERSION_OUTPUT" | sed -E 's/.*version ([0-9.]+[^ ]*).*/\1/')
7979 echo "Cleaned version: $NEW_TAG"
8080
81+ # Append alpine tag is necessary
82+ if [[ "$IMAGE" == *-alpine* ]]; then
83+ NEW_TAG="${NEW_TAG}-alpine"
84+ fi
85+ echo "New tag: $NEW_TAG"
86+
8187 # Extract version from input image tag and validate
8288 INPUT_VERSION=$(echo "$IMAGE" | sed -E 's|.*:.*-([0-9.]+[^ ]*).*|\1|')
8389
@@ -99,11 +105,6 @@ jobs:
99105 fi
100106 echo "Repository: $REPO_NAME"
101107
102- if [[ "$IMAGE" == *-alpine* ]]; then
103- NEW_TAG="${NEW_TAG}-alpine"
104- fi
105- echo "New tag: $NEW_TAG"
106-
107108 # Export the new tag and repository
108109 echo "NEW_TAG=$NEW_TAG" >> $GITHUB_ENV
109110 echo "REPO_NAME=$REPO_NAME" >> $GITHUB_ENV
You can’t perform that action at this time.
0 commit comments