Commit 589ee840 authored by Jacob Priddy's avatar Jacob Priddy 👌
Browse files

try using private token instead of job token?

parent 5c87bbdf
Pipeline #9825 passed with stages
in 2 minutes and 53 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 '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=\"curl --location --header 'PRIVATE-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