From 02a33458a9f0e00f7770408a92930e93ada4a73d Mon Sep 17 00:00:00 2001 From: Scott Aubrey Date: Wed, 9 Oct 2024 15:43:26 +0100 Subject: [PATCH] Fix: Remove hardcoded commitID --- bin/update-api-dummy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/update-api-dummy b/bin/update-api-dummy index af88ccc6..24c66d32 100755 --- a/bin/update-api-dummy +++ b/bin/update-api-dummy @@ -12,7 +12,7 @@ currentCommitID=$(cat docker-compose.yaml | yq '.services["api-dummy"].image|spl checkoutDir=$(mktemp -d) git clone --filter=blob:none --no-checkout --single-branch --branch $apiDummyBranch $apiDummyRepo $checkoutDir 2>/dev/null -latestCommitID=$(git -C $checkoutDir log -1 --pretty="%H" 140568fd486e4cda4517fb4daa4e1ca2342139b2..$apiDummyBranch) +latestCommitID=$(git -C $checkoutDir log -1 --pretty="%H" $currentCommitID..$apiDummyBranch) rm -Rf $checkoutDir echo Image name: $imageName