diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index 309666e1..5e75daf8 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -55,7 +55,7 @@ definitions: steps: - step: &deploy name: deploy to $ENV environment - image: atlassian/pipelines-awscli + image: atlassian/default-image:3 script: # check if env file exists - if [ -e setenv.sh ]; then @@ -63,6 +63,7 @@ definitions: - source setenv.sh - fi - echo "This is for $ENV environment" + - curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && unzip awscliv2.zip && ./aws/install - ls -lrth && cd build/${ENV} - export DB_PASSWORD=$(aws ssm get-parameters --names $ENV-$BITBUCKET_REPO_SLUG --query "Parameters[*].{Value:Value}" --output text) - export DB_PASSWORD=`echo -n "$DB_PASSWORD" | base64` && sed -i "/DB_PASSWORD/c\ DB_PASSWORD = $DB_PASSWORD" secrets.yaml