From 7175088c5120462a10393b4761bf60abb340068b Mon Sep 17 00:00:00 2001 From: "C.Lee Taylor" Date: Fri, 1 Jul 2022 10:15:31 +0200 Subject: [PATCH] Fix GHA service TAG from dockerfile --- .github/workflows/launchpad_docker.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}")