From a507e121542b23787ca0d069d12f4786e1b414fd Mon Sep 17 00:00:00 2001 From: Michael McGuinness Date: Tue, 24 Sep 2024 17:57:41 +0100 Subject: [PATCH 1/5] branchspecific --- bitbucket-pipelines.yml | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index 0bf31a7..1a0c442 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -24,12 +24,12 @@ definitions: - schemachange -a $SNOWFLAKE_ACCOUNT -u $SNOWFLAKE_USER -r $SNOWFLAKE_ROLE -w $SNOWFLAKE_WAREHOUSE -d $SNOWFLAKE_DATABASE -c $SNOWFLAKE_DATABASE.SCHEMACHANGE.CHANGE_HISTORY --create-change-history-table -v caches: - pip - condition: - changesets: - includePaths: - - snowflake/**/* - - snowflake/**/**/* - - snowflake/**/**/**/* + #condition: + # changesets: + # includePaths: + # - snowflake/**/* + # - snowflake/**/**/* + # - snowflake/**/**/**/* - step: image: python:3.8 name: "Deploy streamlit to EC2" @@ -47,11 +47,11 @@ definitions: "if [ -d /home/ubuntu/doczy.ai ]; then cd /home/ubuntu/doczy.ai && git fetch && git pull; else cd /home/ubuntu && git clone git@bitbucket.org:aarete/doczy.ai.git; fi", "EOF" ]' - condition: - changesets: - includePaths: - - streamlit/* - - streamlit/**/* + #condition: + # changesets: + # includePaths: + # - streamlit/* + # - streamlit/**/* - step: name: "Deploy Airflow DAGs to S3 bucket" image: python:3.8 @@ -63,10 +63,10 @@ definitions: - *aws-context - aws sts get-caller-identity - aws s3 sync ./airflow/dags s3://doczy-dev-infra-mwaa-resources/dags - condition: - changesets: - includePaths: - - airflow/dags/* + #condition: + # changesets: + # includePaths: + # - airflow/dags/* - step: image: hugree/terraform-with-snowsql:latest name: Run Snowsql @@ -102,7 +102,8 @@ definitions: pipelines: branches: - main: + #default: + {main,bufix/stages}: - step: name: Build and Test script: From 2194095316695bdc66008bc775189219bab48484 Mon Sep 17 00:00:00 2001 From: Michael McGuinness Date: Tue, 24 Sep 2024 17:58:58 +0100 Subject: [PATCH 2/5] typo --- bitbucket-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index 1a0c442..6482be9 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -103,7 +103,7 @@ definitions: pipelines: branches: #default: - {main,bufix/stages}: + {main,bugfix/stages}: - step: name: Build and Test script: From 474bab2154f664b0b81c3a9f77f80095f26bdab4 Mon Sep 17 00:00:00 2001 From: Michael McGuinness Date: Tue, 24 Sep 2024 17:59:40 +0100 Subject: [PATCH 3/5] makestrig --- bitbucket-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index 6482be9..053dfac 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -103,7 +103,7 @@ definitions: pipelines: branches: #default: - {main,bugfix/stages}: + '{main,bugfix/stages}': - step: name: Build and Test script: From 35b221d01fa07f6e6314ddfb13fff5bf07e0ce71 Mon Sep 17 00:00:00 2001 From: Michael McGuinness Date: Tue, 24 Sep 2024 18:01:00 +0100 Subject: [PATCH 4/5] dev --- bitbucket-pipelines.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index 053dfac..727a5d8 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -9,8 +9,6 @@ definitions: export AWS_SECURITY_TOKEN=$(echo $STS_OUTPUT | jq -r '.Credentials.SessionToken'); export AWS_REGION='us-east-2'; stage: &deployment - name: deployment - deployment: development trigger: manual steps: - step: From e0361d8a1ff6ebb21316e918ce806ed890308f7b Mon Sep 17 00:00:00 2001 From: Michael McGuinness Date: Tue, 24 Sep 2024 18:02:31 +0100 Subject: [PATCH 5/5] onlymain --- bitbucket-pipelines.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index 727a5d8..7bf4eef 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -100,8 +100,7 @@ definitions: pipelines: branches: - #default: - '{main,bugfix/stages}': + main: - step: name: Build and Test script: