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
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: