dev/qa commit
This commit is contained in:
@@ -55,7 +55,7 @@ definitions:
|
|||||||
steps:
|
steps:
|
||||||
- step: &deploy
|
- step: &deploy
|
||||||
name: deploy to $ENV environment
|
name: deploy to $ENV environment
|
||||||
image: atlassian/pipelines-awscli
|
image: atlassian/default-image:3
|
||||||
script:
|
script:
|
||||||
# check if env file exists
|
# check if env file exists
|
||||||
- if [ -e setenv.sh ]; then
|
- if [ -e setenv.sh ]; then
|
||||||
@@ -63,6 +63,7 @@ definitions:
|
|||||||
- source setenv.sh
|
- source setenv.sh
|
||||||
- fi
|
- fi
|
||||||
- echo "This is for $ENV environment"
|
- 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}
|
- 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=$(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
|
- export DB_PASSWORD=`echo -n "$DB_PASSWORD" | base64` && sed -i "/DB_PASSWORD/c\ DB_PASSWORD = $DB_PASSWORD" secrets.yaml
|
||||||
|
|||||||
Reference in New Issue
Block a user