From 063fe39de57e0613f12014b961c9f9c1c316bdb4 Mon Sep 17 00:00:00 2001 From: Bettina Heim Date: Wed, 11 Dec 2024 21:04:08 +0100 Subject: [PATCH] filter cu* prefix for docs version Signed-off-by: Bettina Heim --- .github/workflows/docker_images.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker_images.yml b/.github/workflows/docker_images.yml index 5b4717c570..0e62b2a302 100644 --- a/.github/workflows/docker_images.yml +++ b/.github/workflows/docker_images.yml @@ -694,7 +694,7 @@ jobs: fi image_tag=`docker inspect $cudaq_image --format='{{json .Config.Labels}}' | jq -r '."org.opencontainers.image.version"'` - docs_version="CUDA_QUANTUM_VERSION=${image_tag%-base}" + docs_version="CUDA_QUANTUM_VERSION=$(echo $image_tag | sed -re 's/^(cu[0-9]+-)?(.*)-base$/\2/')" docker image rm $cudaq_image docker image prune --force