diff --git a/.circleci/config.yml b/.circleci/config.yml index a129f46..6cb5304 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -100,4 +100,5 @@ jobs: - lumigo-orb/checkout_code - run: mvn clean install - run: ../utils/common_bash/defaults/code_cov.sh + - run: cd .. && git clone git@github.com:lumigo-io/larn.git - run: ./scripts/bd_to_prod.sh diff --git a/scripts/bd_to_prod.sh b/scripts/bd_to_prod.sh index ba4d6e4..3b687cb 100755 --- a/scripts/bd_to_prod.sh +++ b/scripts/bd_to_prod.sh @@ -22,6 +22,16 @@ echo " \/ \/ /_____/ \/ "; echo echo "Deploy lumigo-java-tracer to maven repository server" +enc_location=../common-resources/encrypted_files/credentials_production.enc +if [[ ! -f ${enc_location} ]] +then + echo "$enc_location not found" + exit 1 +fi +echo "Creating new credential files" +mkdir -p ~/.aws +echo ${KEY} | gpg --batch -d --passphrase-fd 0 ${enc_location} > ~/.aws/credentials + setup_git echo "Getting latest changes from git" changes=$(git log $(git describe --tags --abbrev=0)..HEAD --oneline)