diff --git a/.github/workflows/docker-dev-release.yml b/.github/workflows/docker-dev-release.yml index cbf4d770a..567683cec 100644 --- a/.github/workflows/docker-dev-release.yml +++ b/.github/workflows/docker-dev-release.yml @@ -112,7 +112,7 @@ jobs: # Extract version from the image echo "Extracting version from image..." - VERSION=$(docker run --rm ${image_tag} dragonfly --version | head -n1 | cut -d' ' -f2 | cut -d'-' -f1) + VERSION=$(docker run --rm ${image_tag} dragonfly --version | sed -r "s/\x1B\[([0-9]{1,3}(;[0-9]{1,2})?)?[mGK]//g" | head -n1 | cut -d' ' -f2 | cut -d'-' -f1) echo "Dragonfly version: $VERSION" echo "Extracting binary from ${image_tag} for ${{ matrix.os.arch }}" @@ -128,8 +128,7 @@ jobs: # Upload to GCS echo "Uploading ${tar_name} to GCS" - destination="gs://${{ secrets.ARTIFACT_BUCKET }}/dragonfly/${VERSION}" - gcloud storage cp ${tar_name} gs://stagingv2-data-plane-dragonfly-artifacts/dragonfly/${VERSION}/ + gcloud storage cp "$tar_name" "gs:${{ secrets.ARTIFACT_BUCKET }}/dragonfly/$VERSION/" # Cleanup rm -f dragonfly ${tar_name}