File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -20,16 +20,17 @@ jobs:
2020 with :
2121 token : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
2222
23- - name : Extract CLI version from Dockerfile
23+ - name : Extract full CLI version from Dockerfile
2424 id : extract_cli_version
2525 run : |
26- IMAGE_LINE=$(grep -m 1 '^FROM' Dockerfile)
27- CLI_VERSION =$(echo "$IMAGE_LINE" | awk -F ':' '{print $2}')
26+ IMAGE_LINE=$(grep -m 1 '^FROM' Dockerfile | awk '{print $2}') # Extract the full image reference
27+ IMAGE_TAG =$(echo "$IMAGE_LINE" | cut -d ':' -f2-) # Get everything after the first colon
2828
29- echo "Extracted CLI version: $CLI_VERSION"
29+ echo "Extracted CLI version: $IMAGE_TAG"
30+
31+ echo "CLI_VERSION=$IMAGE_TAG" >> $GITHUB_ENV
32+ echo "::set-output name=CLI_VERSION::$IMAGE_TAG"
3033
31- echo "CLI_VERSION=$CLI_VERSION" >> $GITHUB_ENV
32- echo "::set-output name=CLI_VERSION::$CLI_VERSION"
3334
3435 - name : Tag
3536 run : |
You can’t perform that action at this time.
0 commit comments