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

test with s3cmd

parent 628c3faa
No related branches found
No related tags found
No related merge requests found
Pipeline #9702 passed with stages
in 3 minutes and 52 seconds
......@@ -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"
......
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