diff --git a/.github/workflows/launchpad_docker.yml b/.github/workflows/launchpad_docker.yml index 7a77f2516f..4f512210ca 100644 --- a/.github/workflows/launchpad_docker.yml +++ b/.github/workflows/launchpad_docker.yml @@ -101,8 +101,8 @@ jobs: DOCKERFILE=${IMAGE}.Dockerfile DOCKERCONTEXT=./applications/launchpad/docker_rig/ - # Pull the docker image TAG from dockerfile - SUBTAG=$(awk -F '=' '/ARG .*_VERSION=/ \ + # Pull the docker image version TAG from service dockerfile + SUBTAG=$(awk -v search="^ARG ${IMAGE^^}?_VERSION=" -F '=' '$0 ~ search \ { gsub(/["]/, "", $2); printf("%s",$2) }' \ "${GITHUB_WORKSPACE}/${DOCKERCONTEXT}${DOCKERFILE}")