From 4abdbc21cb6cb099dd1aa5bee9ffbcc971d17818 Mon Sep 17 00:00:00 2001
From: Krish Moodbidri <krish94@uab.edu>
Date: Fri, 12 Jan 2024 08:50:21 -0600
Subject: [PATCH] moved aws commands to prep-deploy

---
 .gitlab-ci.yml | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6cd7ae8..f7dd4b0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -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"
-- 
GitLab