Skip to content

Commit 4d2d4a4

Browse files
authored
fix: rename environment variables (#2)
To make variables unique and avoid ambiguousness
1 parent 927259f commit 4d2d4a4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

entrypoint.sh

+6-6
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ JSON_DATA=$(jq -n -c \
3030

3131
echo $JSON_DATA
3232

33-
response_code=$(curl --show-error --silent --location --request POST "${CI_ENDPOINT}/migration/run" --write-out "%{http_code}" \
34-
--header "Verification-Token: ${SECRET_TOKEN}" \
33+
response_code=$(curl --show-error --silent --location --request POST "${DLMC_CI_ENDPOINT}/migration/run" --write-out "%{http_code}" \
34+
--header "Verification-Token: ${DLMC_VERIFICATION_TOKEN}" \
3535
--header 'Content-Type: application/json' \
3636
--output response.json \
3737
--data "${JSON_DATA}")
@@ -63,8 +63,8 @@ fi
6363
mkdir artifacts
6464

6565
download_artifacts() {
66-
artifact_code=$(curl --show-error --silent "${CI_ENDPOINT}/artifact/download?artifact_type=$1&session_id=$2&clone_id=$3" --write-out "%{http_code}" \
67-
--header "Verification-Token: ${SECRET_TOKEN}" \
66+
artifact_code=$(curl --show-error --silent "${DLMC_CI_ENDPOINT}/artifact/download?artifact_type=$1&session_id=$2&clone_id=$3" --write-out "%{http_code}" \
67+
--header "Verification-Token: ${DLMC_VERIFICATION_TOKEN}" \
6868
--header 'Content-Type: application/json' \
6969
--output artifacts/$1)
7070

@@ -81,8 +81,8 @@ cat response.json | jq -c -r '.session.artifacts[]' | while read artifact; do
8181
done
8282

8383
# Stop the running clone
84-
response_code=$(curl --show-error --silent "${CI_ENDPOINT}/artifact/stop?clone_id=${clone_id}" --write-out "%{http_code}" \
85-
--header "Verification-Token: ${SECRET_TOKEN}" \
84+
response_code=$(curl --show-error --silent "${DLMC_CI_ENDPOINT}/artifact/stop?clone_id=${clone_id}" --write-out "%{http_code}" \
85+
--header "Verification-Token: ${DLMC_VERIFICATION_TOKEN}" \
8686
--header 'Content-Type: application/json')
8787

8888
if [[ $response_code -ne 200 ]]; then

0 commit comments

Comments
 (0)