Skip to content
Snippets Groups Projects
Commit 4abdbc21 authored by Krish Moodbidri's avatar Krish Moodbidri
Browse files

moved aws commands to prep-deploy

parent b3b55334
No related branches found
No related tags found
No related merge requests found
Pipeline #9704 failed with stages
in 54 seconds
......@@ -30,11 +30,6 @@ stages: # List of stages for jobs, and their order of execution
- build
- deploy
- cleanup
.get_ansible_files: &get_ansible_files
- s3cmd get --force -r --host=$AWS_HOST --host-bucket=$AWS_HOST s3://xdmod-vol/ /tmp
- ls -l /tmp
prep-deploy:
stage: .pre
......@@ -44,6 +39,8 @@ prep-deploy:
script:
- export BUILD_DATE=$(TZ=America/Chicago date +%Y-%m-%dT%H%M%S)
- apt-get update && apt-get install -y awscli
- s3cmd get --force -r --host=$AWS_HOST --host-bucket=$AWS_HOST s3://xdmod-vol/ /tmp
- ls -l /tmp
- |
if [ "$TARGET_ENV" = "dev" ]; then
TF_VAR_data_volume="xdmod-dev-volume-$BUILD_DATE"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment