diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index c775d52..8e54bd0 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -212,12 +212,39 @@ pipelines: - airflow/dags/* PROD: + - step: + name: Apply devops-pipeline on PROD + image: hugree/bitbucket-aws-python38-tf154:latest + oidc: true + script: + - *aws-context-prod + - aws sts get-caller-identity --output text + - pip install -r requirements.txt + - BB_PIPELINE_BRANCH="DEV" python terraform.py apply --environment=prod --module=devops-pipeline/other-resources + - step: + name: Apply streamlit-server on PROD + image: hugree/bitbucket-aws-python38-tf154:latest + oidc: true + script: + - *aws-context-prod + - pip install -r requirements.txt + - BB_PIPELINE_BRANCH="DEV" python terraform.py apply --environment=prod --module=streamlit-server + - step: + name: Apply textract-pipeline on PROD + image: hugree/terraform-with-snowsql:latest + oidc: true + script: + - *aws-context-prod + - pip install -r requirements.txt + - BB_PIPELINE_BRANCH="DEV" python terraform.py apply --environment=prod --module=textract-pipeline/terraform - step: <<: *snowflake_deploy condition: - paths: - - snowflake/**/*.sql - + changesets: + includePaths: + - snowflake/PROD/* + - snowflake/PROD/**/* + - snowflake/PROD/**/**/* feature/DOC-595-cicd-for-prod: - parallel: