Skip to content

Commit

Permalink
include job_id when requesting credentials (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
finkandreas authored Apr 24, 2024
1 parent 201f28d commit 895080e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/setup-oras
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export PATH="$oras_path:$PATH"
log "oras v${oras_version} installed in ${oras_path}"

# Obtain credentials for JFrog - required to push the image and meta-data
creds_json=$(curl --retry 5 --retry-connrefused --fail --silent "$CSCS_CI_MW_URL/credentials?token=$CI_JOB_TOKEN&creds=container_registry")
creds_json=$(curl --retry 5 --retry-connrefused --fail --silent "$CSCS_CI_MW_URL/credentials?token=$CI_JOB_TOKEN&job_id=$CI_JOB_ID&creds=container_registry")
oras_creds="$(echo ${creds_json} | jq --join-output '"--username " + .container_registry.username + " --password " +.container_registry.password')"

jfrog_u="$(echo ${creds_json} | jq -r '.container_registry.username')"
Expand Down

0 comments on commit 895080e

Please sign in to comment.