branchspecific

This commit is contained in:
Michael McGuinness
2024-09-24 17:57:41 +01:00
parent f41664db3c
commit a507e12154
+17 -16
View File
@@ -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 - 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: caches:
- pip - pip
condition: #condition:
changesets: # changesets:
includePaths: # includePaths:
- snowflake/**/* # - snowflake/**/*
- snowflake/**/**/* # - snowflake/**/**/*
- snowflake/**/**/**/* # - snowflake/**/**/**/*
- step: - step:
image: python:3.8 image: python:3.8
name: "Deploy streamlit to EC2" 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", "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" "EOF"
]' ]'
condition: #condition:
changesets: # changesets:
includePaths: # includePaths:
- streamlit/* # - streamlit/*
- streamlit/**/* # - streamlit/**/*
- step: - step:
name: "Deploy Airflow DAGs to S3 bucket" name: "Deploy Airflow DAGs to S3 bucket"
image: python:3.8 image: python:3.8
@@ -63,10 +63,10 @@ definitions:
- *aws-context - *aws-context
- aws sts get-caller-identity - aws sts get-caller-identity
- aws s3 sync ./airflow/dags s3://doczy-dev-infra-mwaa-resources/dags - aws s3 sync ./airflow/dags s3://doczy-dev-infra-mwaa-resources/dags
condition: #condition:
changesets: # changesets:
includePaths: # includePaths:
- airflow/dags/* # - airflow/dags/*
- step: - step:
image: hugree/terraform-with-snowsql:latest image: hugree/terraform-with-snowsql:latest
name: Run Snowsql name: Run Snowsql
@@ -102,7 +102,8 @@ definitions:
pipelines: pipelines:
branches: branches:
main: #default:
{main,bufix/stages}:
- step: - step:
name: Build and Test name: Build and Test
script: script: