Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
c98f300
add preliminary terraform
itsarune Feb 28, 2023
b01f876
whitespace
itsarune Feb 28, 2023
f5af06d
fix broken terraform yaml
itsarune Feb 28, 2023
09d9dfb
fix indentation inyaml
itsarune Feb 28, 2023
acd0b82
terraform name
itsarune Feb 28, 2023
6ff1e4b
update indentation of terraform yaml
itsarune Feb 28, 2023
6d0ff94
terraform name error
itsarune Feb 28, 2023
7cc7caf
another format error
itsarune Feb 28, 2023
6201d6b
every step uses a uses or run key
itsarune Feb 28, 2023
30c0da2
whitespace
itsarune Feb 28, 2023
a7c4b29
follow terraform tutorial exactly
itsarune Feb 28, 2023
6b570e7
temp delete other yamls because of weird checkout error
itsarune Feb 28, 2023
dde1731
apply to all branches
itsarune Feb 28, 2023
154095c
accidental spelling error
itsarune Feb 28, 2023
bdca09d
checkout v2?
itsarune Feb 28, 2023
0c571c9
Revert "checkout v2?"
itsarune Mar 2, 2023
18e971e
Revert "temp delete other yamls because of weird checkout error"
itsarune Mar 2, 2023
4f2f454
check if github actions token is the actual failure
itsarune Mar 2, 2023
5cd1e82
authenticate with github token explicityly?
itsarune Mar 2, 2023
5f31d17
remove name from workflow
itsarune Mar 4, 2023
1608e70
error with workflow
itsarune Mar 4, 2023
bfda4c8
remove pull request write persmission
itsarune Mar 4, 2023
d72d886
add back other steps
itsarune Mar 4, 2023
5481dbb
add back PR write feedback
itsarune Mar 4, 2023
d2692ba
wip at class
itsarune Mar 7, 2023
516a4f4
what does this do?
itsarune Mar 28, 2023
be1f188
error code 0 from fmt
itsarune Mar 28, 2023
18a3913
add google cloud credentials
itsarune Mar 28, 2023
2e2ba7a
terraform format error
itsarune Mar 28, 2023
7e39149
added TF_GCP_CREDENTIALS
itsarune Apr 3, 2023
28c7be9
change GOOGLE environment variable
itsarune Apr 3, 2023
7a6e8af
Merge branch 'arun_terraform_test' of github.com:CPSC319-2022/Continu…
itsarune Apr 3, 2023
1933a59
terraform update
itsarune Apr 3, 2023
8eeeff4
update terraform fmt
itsarune Apr 3, 2023
6530bae
terraform gcp credentials for plan and apply stage
itsarune Apr 4, 2023
1e69f93
feature build?
itsarune Apr 4, 2023
e124240
run on all branches
itsarune Apr 4, 2023
b90efc8
push to main
itsarune Apr 4, 2023
6662851
try updating to on push?
itsarune Apr 4, 2023
520c13f
remove github in main.tf
itsarune Apr 4, 2023
262ea19
Revert "remove github in main.tf"
itsarune Apr 4, 2023
c9e6f12
revert back github
itsarune Apr 4, 2023
2ff9005
revert terraform yaml back to tutorial demo
itsarune Apr 4, 2023
cbb9e54
github change push branch to pull request
itsarune Apr 4, 2023
34b3018
add cloud storage bucket
itsarune Apr 4, 2023
e6c707d
add new terraform backend.tf
itsarune Apr 4, 2023
42bc717
ran terraform format
itsarune Apr 4, 2023
65a3a5d
remove other gcs backend
itsarune Apr 4, 2023
03cfd59
run main.tf on pull request
itsarune Apr 4, 2023
26f343a
fix terraform format error
itsarune Apr 4, 2023
8ec41ad
update syntax error in terraform file
itsarune Apr 4, 2023
5c53510
make terraform apply stage run during pull requests
itsarune Apr 4, 2023
0de2211
add GOOGLE CREDENTIALS env to apply
itsarune Apr 4, 2023
98bb226
Merge branch 'arun_terraform_demo' of github.com:CPSC319-2022/Continu…
itsarune Apr 10, 2023
05d4f5b
add arun_terraform_test
itsarune Apr 10, 2023
44ca9df
trigger terraform on push
itsarune Apr 10, 2023
ac0bec2
make terraform responsible for deployments
itsarune Apr 10, 2023
bfb6572
Merge branch 'arun_terraform_demo' of github.com:CPSC319-2022/Continu…
itsarune Apr 10, 2023
1b25691
test
itsarune Apr 10, 2023
56143df
change branch matching regex
itsarune Apr 10, 2023
7b1c7cb
Merge branch 'arun_terraform_demo' of github.com:CPSC319-2022/Continu…
itsarune Apr 10, 2023
647b59e
revert Layout
itsarune Apr 10, 2023
6af9949
should give terraform permissions to actually modify itself when it runs
itsarune Apr 12, 2023
ca60db7
do i need this bucket
itsarune Apr 12, 2023
d174f2c
cleanup?
itsarune Apr 12, 2023
330fc03
cleanup github actions yaml
itsarune Apr 12, 2023
1983973
Merge branch 'arunterraformdemo' of github.com:CPSC319-2022/Continuus…
itsarune Apr 12, 2023
d4938a6
make terraform spit out deployment URL
itsarune Apr 12, 2023
ddf01c2
terraform output link update
itsarune Apr 12, 2023
2c92f16
deployment link formatting
itsarune Apr 12, 2023
ad861d3
update formatting link
itsarune Apr 12, 2023
fe93598
markdown link?
itsarune Apr 12, 2023
2edbcd2
stop feature build trying to be parallel
itsarune Apr 12, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
129 changes: 0 additions & 129 deletions .github/workflows/dev-qa-prod.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/feature-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- 'qa'
- 'prod'
- 'demo'
- 'arun_terraform_demo'
- 'arunterraformdemo'

jobs:
build:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ on:
- 'qa'
- 'prod'
- 'demo'
- 'arun_terraform_demo'
- 'arunterraformdemo'
pull_request:
branches:
- 'dev'
- 'qa'
- 'prod'
- 'demo'
- 'arun_terraform_demo'
- 'arunterraformdemo'

permissions:
pull-requests: write
Expand Down Expand Up @@ -71,8 +71,11 @@ jobs:
<details><summary>Show Plan</summary>
\`\`\`\n
${process.env.PLAN}
Once merged and build is complete, your deployment will be available at:
[${{ github.base_ref }}-hmcu4gyu5a-pd.a.run.app/](${{ github.base_ref }}-hmcu4gyu5a-pd.a.run.app/)
\`\`\`
</details>

*Pushed by: @${{ github.actor }}, Action: \`${{ github.event_name }}\`*`;
github.rest.issues.createComment({
issue_number: context.issue.number,
Expand Down
1 change: 0 additions & 1 deletion cloudbuild/feature-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ steps:
- name: 'gcr.io/cloud-builders/docker'
entrypoint: 'bash'
args: ['-c', 'docker build . --tag northamerica-northeast2-docker.pkg.dev/automatic-bot-376307/continuus/$SHORT_SHA-test -f docker/test/Dockerfile']
waitFor: ['-']

# Docker Push
- name: 'gcr.io/cloud-builders/docker'
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ resource "google_cloudbuild_trigger" "build-trigger" {
name = "Continuus"
//Events section
push {
branch = "dev|qa|prod|demo|arun_terraform_demo"
branch = "dev|qa|prod|demo|arunterraformdemo"
}
}
ignored_files = [".gitignore"]
Expand Down