Create gitea workflow
This commit is contained in:
parent
1c94485587
commit
d4335ca10e
1 changed files with 21 additions and 0 deletions
21
.gitea/workflows/deploy.yaml
Normal file
21
.gitea/workflows/deploy.yaml
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
name: Deploy
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Terraform Init
|
||||||
|
run: |
|
||||||
|
terraform init -input=false
|
||||||
|
- name: Terraform Plan
|
||||||
|
run: |
|
||||||
|
terraform plan -out=tfplan -input=false
|
||||||
|
- name: Terraform Apply
|
||||||
|
run: |
|
||||||
|
terraform apply -input=false tfplan
|
Loading…
Add table
Add a link
Reference in a new issue