aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorAlex Schofield <git@ajschof.me>2024-08-16 14:30:07 +0100
committerAlex Schofield <git@ajschof.me>2024-08-16 14:30:07 +0100
commitcf3d366e730e88ceea194d5b3b1d1a3ddecdd944 (patch)
tree3fc60e2def8442289a6b020505a4e46a707888bb /.github
parent2bcedc300f36760b55f0db8cfb4e724362d1c251 (diff)
downloadde-project-bentley-cf3d366e730e88ceea194d5b3b1d1a3ddecdd944.tar.gz
de-project-bentley-cf3d366e730e88ceea194d5b3b1d1a3ddecdd944.zip
ci: deploy only on push/pr to main
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/deploy.yml11
1 files changed, 7 insertions, 4 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index bd9df57..db51d20 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -1,10 +1,13 @@
name: deploy-terraform
on:
- push:
+ pull-request:
branches:
- - ci-cd-branch # Adjust the branch based on our deployment strategy
-
+ - main
+ pull:
+ branches:
+ - main
+
jobs:
deploy-terraform:
@@ -36,4 +39,4 @@ jobs:
- name: Terraform Apply
working-directory: terraform
- run: terraform apply --auto-approve \ No newline at end of file
+ run: terraform apply --auto-approve
git.ajschof.me — hosted by ajschofield — powered by cgit