Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add debug information #25

Merged
merged 1 commit into from
Oct 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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
Expand All @@ -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

Expand Down