From 217f451f4c7a8832dca17f9d2efb6a5722d38e7f Mon Sep 17 00:00:00 2001 From: Jorge Luis Monroy Herrera Date: Thu, 17 Oct 2024 09:16:41 -0500 Subject: [PATCH] Add debug information (#25) --- .circleci/config.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4c7c85f..d420080 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -54,6 +54,21 @@ jobs: docker: - image: cimg/base:stable steps: + - run: + name: Project Information + command: | + echo "Project Setup:" + echo "SOURCE_TYPE: << pipeline.parameters.SOURCE_TYPE >>" + echo "S3_URL: << pipeline.parameters.S3_URL >>" + echo "REPOSITORY: << pipeline.parameters.REPOSITORY >>" + echo "BUILD_DIR: << pipeline.parameters.BUILD_DIR >>" + echo "PACKAGE_INSTALL_COMMAND: << pipeline.parameters.PACKAGE_INSTALL_COMMAND >>" + echo "BUILD_COMMAND: << pipeline.parameters.BUILD_COMMAND >>" + echo "OUTPUT_DIR: << pipeline.parameters.OUTPUT_DIR >>" + echo "ONE_CLICK_SERVER_URL: << pipeline.parameters.ONE_CLICK_SERVER_URL >>" + echo "ENVIRONMENT: << pipeline.parameters.ENVIRONMENT >>" + echo "CI_TRIGGER: << pipeline.parameters.CI_TRIGGER >>" + - run: name: Check CI_TRIGGER command: | @@ -124,7 +139,7 @@ jobs: command: | if [ -n "<< pipeline.parameters.SECRETS >>" ]; then echo "Downloading and decoding secrets..." - + # Configure AWS CLI aws configure set aws_access_key_id $AWS_ACCESS_KEY_ID aws configure set aws_secret_access_key $AWS_SECRET_ACCESS_KEY @@ -135,7 +150,7 @@ jobs: # Decrypt the secrets DECRYPTED_JSON=$(node ~/project/decrypt.js "$(cat ~/project/encrypted_secrets.json)") - + echo "$DECRYPTED_JSON" | jq -r 'to_entries | map("export \(.key)=\(.value|@sh)") | .[]' > ~/project/decrypted_secrets.txt source ~/project/decrypted_secrets.txt