Skip to content
Snippets Groups Projects

WIP: Feat vol download from s3

1 file
+ 8
6
Compare changes
  • Side-by-side
  • Inline
+ 8
6
@@ -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
@@ -43,7 +38,14 @@ prep-deploy:
name: $TARGET_ENV
script:
- export BUILD_DATE=$(TZ=America/Chicago date +%Y-%m-%dT%H%M%S)
- apt-get update && apt-get install -y awscli
- apt-get update -qy
- apt-get install -y awscli
- echo "[default]" > ~/.aws/credentials
- echo "aws_access_key_id = $AWS_ACCESS_KEY_ID" >> ~/.aws/credentials
- echo "aws_secret_access_key = $AWS_SECRET_ACCESS_KEY" >> ~/.aws/credentials
- aws configure set default.region $AWS_DEFAULT_REGION
- 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"
Loading