From a1b55fafd88a0d67ca94e9492559bc5ebd53bade Mon Sep 17 00:00:00 2001 From: Grzegorz Huber Date: Thu, 27 Jun 2024 14:27:28 +0200 Subject: [PATCH] [DOC-595] apply textract for PROD --- bitbucket-pipelines.yml | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) 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: