Skip to content
Snippets Groups Projects
Commit 1d364404 authored by ddorgan's avatar ddorgan Committed by GitHub
Browse files

Update s3 artifact url (#6399)

parent 850ee8b4
No related merge requests found
...@@ -5,7 +5,7 @@ RETRY_ATTEMPT=0 ...@@ -5,7 +5,7 @@ RETRY_ATTEMPT=0
SLEEP_TIME=15 SLEEP_TIME=15
TARGET_HOST="$1" TARGET_HOST="$1"
COMMIT=$(cat artifacts/substrate/VERSION) COMMIT=$(cat artifacts/substrate/VERSION)
DOWNLOAD_URL="https://releases.parity.io/substrate/x86_64-debian:stretch/${COMMIT}/substrate" DOWNLOAD_URL="https://releases.parity.io/substrate/x86_64-debian:stretch/${COMMIT}/substrate/substrate"
POST_DATA='{"extra_vars":{"artifact_path":"'${DOWNLOAD_URL}'","target_host":"'${TARGET_HOST}'"}}' POST_DATA='{"extra_vars":{"artifact_path":"'${DOWNLOAD_URL}'","target_host":"'${TARGET_HOST}'"}}'
JOB_ID=$(wget -O - --header "Authorization: Bearer ${AWX_TOKEN}" --header "Content-type: application/json" --post-data "${POST_DATA}" https://ansible-awx.parity.io/api/v2/job_templates/32/launch/ | jq .job) JOB_ID=$(wget -O - --header "Authorization: Bearer ${AWX_TOKEN}" --header "Content-type: application/json" --post-data "${POST_DATA}" https://ansible-awx.parity.io/api/v2/job_templates/32/launch/ | jq .job)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment