Compare commits
1 Commits
bc048d05fc
...
8bc40a9281
| Author | SHA1 | Date | |
|---|---|---|---|
| 8bc40a9281 |
26
.gitea/workflows/deploy.yaml
Normal file
26
.gitea/workflows/deploy.yaml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
---
|
||||||
|
name: Deploy
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: almalinux-8
|
||||||
|
container:
|
||||||
|
image: git.unkin.net/unkin/almalinux9-actionsdind:latest
|
||||||
|
options: --privileged
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Run Terraform Plan
|
||||||
|
env:
|
||||||
|
VAULT_ROLEID: ${{ secrets.TERRAFORM_INCUS_VAULT_ROLEID }}
|
||||||
|
run: |
|
||||||
|
make apply
|
||||||
2
Makefile
2
Makefile
@ -37,7 +37,7 @@ plan: init
|
|||||||
@$(call vault_env) && \
|
@$(call vault_env) && \
|
||||||
terragrunt run --all --parallelism 8 --non-interactive plan
|
terragrunt run --all --parallelism 8 --non-interactive plan
|
||||||
|
|
||||||
apply:
|
apply: init
|
||||||
@$(call vault_env) && \
|
@$(call vault_env) && \
|
||||||
terragrunt run --all --parallelism 5 --non-interactive apply
|
terragrunt run --all --parallelism 5 --non-interactive apply
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user