Triggering streamlit pipeline creation

This commit is contained in:
Umang Mistry
2024-05-30 17:28:46 -05:00
parent 5cd2fad5e5
commit c1d7680456
3 changed files with 3 additions and 5 deletions
+2 -3
View File
@@ -223,10 +223,9 @@ pipelines:
oidc: true
trigger : automatic # Keeping it manual so that it doesnt conflict with existing resources
script:
- source backend.env
- *aws-context-uat
- cd devops-pipeline/other-resources/
- terraform init -migrate-state -backend-config="access_key=$AWS_ACCESS_KEY_ID" -backend-config="secret_key=$AWS_SECRET_ACCESS_KEY" -backend-config="token=$AWS_SESSION_TOKEN" -backend-config="dynamodb_table=$DYNAMODB_TABLE_NAME" -backend-config="bucket=$S3_BUCKET_NAME" -backend-config="key=terraform/devops-pipeline-other-resources/terraform.tfstate"
- terraform init -migrate-state -backend-config="access_key=$AWS_ACCESS_KEY_ID" -backend-config="secret_key=$AWS_SECRET_ACCESS_KEY" -backend-config="token=$AWS_SESSION_TOKEN" -backend-config="dynamodb_table=doczyai-use2-u-infra-dyd-terraform-lock" -backend-config="bucket=doczyai-use2-u-infra-s3-terraform-state" -backend-config="key=terraform/devops-pipeline-other-resources/terraform.tfstate"
- terraform validate
- terraform apply --auto-approve -no-color -var "access_key=$AWS_ACCESS_KEY_ID" -var "secret_key=$AWS_SECRET_ACCESS_KEY" -var "token=$AWS_SESSION_TOKEN" -var "aws_region=us-east-2" -var "environment=uat"
condition:
@@ -238,7 +237,7 @@ pipelines:
name: "Plan & Apply Streamlit Pipeline"
image: hugree/bitbucket-aws-python38-tf154:latest
oidc: true
trigger : manual
trigger : automatic
script:
- *aws-context-uat
- cd streamlit-server/