Commit a9a57035 authored by Jacob Priddy's avatar Jacob Priddy 👌
Browse files

make unzip overwrite when it unzips just in case

parent d7a50393
Pipeline #9819 passed with stages
in 2 minutes and 38 seconds
......@@ -89,7 +89,7 @@ deploy_frontend_production:
- '[[ -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+=" && unzip frontend.zip && rsync -a --delete src/frontend/dist doorcode/src/frontend/"
- 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"
# Execute the deploy
......
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