Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,17 @@ jobs:
with:
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}

- name: Extract CLI version from Dockerfile
- name: Extract full CLI version from Dockerfile
id: extract_cli_version
run: |
IMAGE_LINE=$(grep -m 1 '^FROM' Dockerfile)
CLI_VERSION=$(echo "$IMAGE_LINE" | awk -F':' '{print $2}')
IMAGE_LINE=$(grep -m 1 '^FROM' Dockerfile | awk '{print $2}') # Extract the full image reference
IMAGE_TAG=$(echo "$IMAGE_LINE" | cut -d':' -f2-) # Get everything after the first colon

echo "Extracted CLI version: $CLI_VERSION"
echo "Extracted CLI version: $IMAGE_TAG"

echo "CLI_VERSION=$IMAGE_TAG" >> $GITHUB_ENV
echo "::set-output name=CLI_VERSION::$IMAGE_TAG"

echo "CLI_VERSION=$CLI_VERSION" >> $GITHUB_ENV
echo "::set-output name=CLI_VERSION::$CLI_VERSION"

- name: Tag
run: |
Expand Down
Loading