Commit 5c87bbdf authored by Jacob Priddy's avatar Jacob Priddy 👌
Browse files

attempt to use the ci job token

parent e2e902f6
Pipeline #9823 passed with stages
in 2 minutes and 55 seconds
......@@ -88,7 +88,7 @@ deploy_frontend_production:
- mkdir -p ~/.ssh
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
script:
- "SSH_COMMAND_STRING=\"curl --location --header 'PRIVATE-TOKEN: ${DEPLOY_TOKEN}' '${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/jobs/artifacts/${CI_BUILD_REF_NAME}/download?job=build_web_frontend' --output frontend.zip\""
- "SSH_COMMAND_STRING=\"curl --location --header 'JOB-TOKEN: $CI_JOB_TOKEN' '${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/jobs/artifacts/${CI_BUILD_REF_NAME}/download?job=build_web_frontend' --output frontend.zip\""
- SSH_COMMAND_STRING+=" && unzip -o frontend.zip && rsync -a --delete src/frontend/dist doorcode/src/frontend/"
- SSH_COMMAND_STRING+=" && rm -rf src/ frontend.zip"
- echo "$SSH_COMMAND_STRING"
......
Supports Markdown
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