Skip to content
Snippets Groups Projects

WIP: Feat vol download from s3

1 file
+ 7
2
Compare changes
  • Side-by-side
  • Inline
+ 7
2
@@ -13,7 +13,9 @@ variables:
GIT_SUBMODULE_STRATEGY: "recursive"
GIT_SUBMODULE_UPDATE_FLAGS: "--force"
AWS_PROFILE: "krish94"
S3_ENDPOINT: "https://s3.lts.rc.uab.edu"
ANSIBLE_REMOTE_TMP: "/tmp"
AWS_DEFAULT_REGION: "bhm"
AWS_HOST: "s3.lts.rc.uab.edu"
BUCKET_NAME: "xdmod-vol"
FILE_NAME: "xdmod-dev-volume-snap.raw"
@@ -29,6 +31,10 @@ stages: # List of stages for jobs, and their order of execution
- deploy
- cleanup
.get_ansible_files: &get_ansible_files
- s3cmd get --force -r --host=$AWS_HOST --host-bucket=$AWS_HOST s3://xdmod-vol/ /tmp
prep-deploy:
stage: .pre
tags: [build]
@@ -37,7 +43,6 @@ prep-deploy:
script:
- export BUILD_DATE=$(TZ=America/Chicago date +%Y-%m-%dT%H%M%S)
- apt-get update && apt-get install -y awscli
- aws s3 --profile="${AWS_PROFILE}" --endpoint="${S3_ENDPOINT}" cp "s3://${BUCKET_NAME}/${FILE_NAME}" "${FILE_NAME}"
- |
if [ "$TARGET_ENV" = "dev" ]; then
TF_VAR_data_volume="xdmod-dev-volume-$BUILD_DATE"
Loading