@@ -244,35 +244,32 @@ jobs:
244244 echo "Running build script"
245245 ./scripts/build.sh
246246
247- - name : Set ARTIFACTS_BUCKET environment variable
248- run : |
249- echo "Running terraform output for artifacts_bucket_name"
250- ARTIFACTS_BUCKET=$(cd modules && terraform output -json artifacts_bucket_name | tr -d "'\"") # Remove quotes and newlines
251- echo "ARTIFACTS_BUCKET=${ARTIFACTS_BUCKET}" >> $GITHUB_ENV
247+ # - name: Set ARTIFACTS_BUCKET environment variable
248+ # run: |
249+ # echo "Running terraform output for artifacts_bucket_name"
250+ # ARTIFACTS_BUCKET=$(cd modules && terraform output -json artifacts_bucket_name | tr -d "'\"") # Remove quotes and newlines
251+ # echo "ARTIFACTS_BUCKET=${ARTIFACTS_BUCKET}" >> $GITHUB_ENV
252252
253- - name : Print ARTIFACTS_BUCKET
254- run : |
255- echo "Starting to print the artifacts bucket name"
256- echo "ARTIFACTS_BUCKET=${ARTIFACTS_BUCKET}"
253+ # - name: Print ARTIFACTS_BUCKET
254+ # run: |
255+ # echo "Starting to print the artifacts bucket name"
256+ # echo "ARTIFACTS_BUCKET=${ARTIFACTS_BUCKET}"
257257 # Deploy Application Code to AWS -- > TODO ARTIFACTS_BUCKET_NAME and NAMESPACE values are hardcoded as -raw flag or jq are throwing errors
258258 - name : Deploy Application Code
259259 env :
260260 ARTIFACTS_BUCKET : ${{ env.ARTIFACTS_BUCKET }}
261261 run : |
262262
263- # echo "Running terraform output for artifacts_bucket_name"
264- # ARTIFACTS_BUCKET_NAME=$(cd modules && terraform output artifacts_bucket_name)
265- # ARTIFACTS_BUCKET=$(echo "${ARTIFACTS_BUCKET_NAME}" | tr -d '"') # Remove quotes if any
266-
267- # echo "Starting to print the artifacts bucket name 1"
268- # echo "ARTIFACTS_BUCKET=$ARTIFACTS_BUCKET"
269-
270- # echo "Starting to print the artifacts bucket name 2"
271- # echo "ARTIFACTS_BUCKET=${ARTIFACTS_BUCKET}"
263+ echo "Running terraform output for artifacts_bucket_name"
264+ ARTIFACTS_BUCKET=$(cd modules && terraform output -raw artifacts_bucket_name)
265+ ARTIFACTS_BUCKET_OUTPUT=$(echo "ARTIFACTS_BUCKET=${ARTIFACTS_BUCKET}")
266+ # echo "ARTIFACTS_BUCKET_OUTPUT=${ARTIFACTS_BUCKET_OUTPUT}" >> $GITHUB_ENV
272267
273- # echo "ARTIFACTS_BUCKET=${ARTIFACTS_BUCKET}" >> $GITHUB_ENV
274268 echo "Starting to print the artifacts bucket name 3"
275- echo "${ARTIFACTS_BUCKET}"
269+ echo "${ARTIFACTS_BUCKET_OUTPUT}"
270+
271+ echo "Starting to print the artifacts bucket name 4"
272+ echo "ARTIFACTS_BUCKET_OUTPUT"
276273
277274
278275 echo "Running terraform output for namespace"
@@ -281,7 +278,7 @@ jobs:
281278 ./scripts/deploy.sh \
282279 /home/runner/work/dce/dce/bin/build_artifacts.zip \
283280 cd\
284- ${ARTIFACTS_BUCKET}
281+ ARTIFACTS_BUCKET_OUTPUT
285282
286283 # Functional Tests --> TODO need to fix the test failures
287284 # - name: Functional Tests
0 commit comments