Skip to content

Commit

Permalink
Create sanitech_continuous_deployment.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Apr 19, 2024
1 parent da26585 commit c286748
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions func/sanitech_continuous_deployment.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
resource "github_actions_workflow" "cd" {
name = "Continuous Deployment"

on = {
push = {
branches = ["main"]
}
}

jobs = {
"build" = {
runs-on = "ubuntu-latest"

steps = [
{
uses = "actions/checkout@v2"
},
{
uses = "actions/setup-go@v2"
with = {
go-version = "1.16"
}
},
{
run = "go build"
},
{
uses = "actions/upload-artifact@v2"
with = {
name = "binary",
path = "./sanitech"
}
},
{
uses = "marketplace/github-actions-formula/actions/setup-formula@v1"
},
{
uses = "marketplace/github-actions-formula/actions/formula-install@v1"
with = {
formula = "kubernetes-helm"
}
},
{
uses = "marketplace/github-actions-formula/actions/formula-helmfile@v1"
with = {
values = "./helmfile.yaml"
}
}
]
}
}
}

0 comments on commit c286748

Please sign in to comment.