Skip to content

Commit

Permalink
Merge pull request #50 from equinor/generate-random-filename
Browse files Browse the repository at this point in the history
use random filename for build script
  • Loading branch information
nilsgstrabo committed May 3, 2024
2 parents 60a3118 + fea14ef commit 835b7f4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build_acr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ if [[ -n "${RADIX_GIT_COMMIT_HASH}" ]]; then
git --git-dir=/workspace/.git --work-tree=/workspace/ reset --hard $RADIX_GIT_COMMIT_HASH || exit 1
fi

GetBuildCommand > /tmp/azbuild.sh
TEMPFILE="$(mktemp -u).sh" # We need a random filename since emptyDir /tmp is mounted to multiple build containers
GetBuildCommand > "$TEMPFILE"
az login --service-principal -u ${SP_USER} -p ${SP_SECRET} --tenant ${TENANT}
bash /tmp/azbuild.sh
bash "$TEMPFILE"

0 comments on commit 835b7f4

Please sign in to comment.