Skip to content

Commit

Permalink
Fix: Remove hardcoded commitID
Browse files Browse the repository at this point in the history
  • Loading branch information
scottaubrey authored Oct 9, 2024
1 parent 5100d45 commit 02a3345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/update-api-dummy
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 02a3345

Please sign in to comment.