mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-opentofu-private.git
synced 2025-10-27 15:53:06 +00:00
Merge branch 'main' of https://gitea.fenix-dev.com/fenix-gitea-admin/iac-teste
This commit is contained in:
@ -9,6 +9,8 @@ jobs:
|
|||||||
hello:
|
hello:
|
||||||
#precisa da imagem costum do opentofu
|
#precisa da imagem costum do opentofu
|
||||||
runs-on: [ fenix-opentofu ]
|
runs-on: [ fenix-opentofu ]
|
||||||
|
env:
|
||||||
|
CONSUL_HTTP_TOKEN: ${{ secrets.CONSUL_HTTP_TOKEN }}
|
||||||
steps:
|
steps:
|
||||||
- name: Updating apt-get
|
- name: Updating apt-get
|
||||||
run: |
|
run: |
|
||||||
@ -16,12 +18,32 @@ jobs:
|
|||||||
|
|
||||||
- name: Cloning iac repository
|
- name: Cloning iac repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
path: infra/iac
|
||||||
|
|
||||||
|
- name: cloning iac secrets repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
repository: fenix-gitea-admin/iac-teste-secrets
|
||||||
|
token: ${{ secrets.GGITEA_TOKEN }}
|
||||||
|
path: infra/secrets
|
||||||
|
|
||||||
- name: Init OpenTofu
|
- name: Init OpenTofu
|
||||||
|
working-directory: infra
|
||||||
run: tofu init
|
run: tofu init
|
||||||
|
|
||||||
- name: Plan
|
- name: Plan
|
||||||
|
working-directory: infra
|
||||||
run: tofu plan -out=tfplan
|
run: tofu plan -out=tfplan
|
||||||
|
|
||||||
|
- name: Export tfplan
|
||||||
|
working-directory: infra
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: tofu-plan
|
||||||
|
path: tfplan
|
||||||
|
|
||||||
|
|
||||||
- name: Apply
|
- name: Apply
|
||||||
|
working-directory: infra
|
||||||
run: tofu apply -auto-approve tfplan
|
run: tofu apply -auto-approve tfplan
|
||||||
Reference in New Issue
Block a user