Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0443034cf1 | ||
| 29d51c063c |
@@ -26,7 +26,7 @@ runs:
|
|||||||
run: terraform init
|
run: terraform init
|
||||||
|
|
||||||
- name: Download plan artifact
|
- name: Download plan artifact
|
||||||
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
uses: https://gitea.ldpt.fr/actions/gitea-download-artifact@main
|
||||||
with:
|
with:
|
||||||
name: terraform-plan
|
name: terraform-plan
|
||||||
path: ${{ inputs.working-directory }}
|
path: ${{ inputs.working-directory }}
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ runs:
|
|||||||
run: terraform plan -out=tfplan
|
run: terraform plan -out=tfplan
|
||||||
|
|
||||||
- name: Upload plan artifact
|
- name: Upload plan artifact
|
||||||
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
|
uses: https://gitea.ldpt.fr/actions/gitea-upload-artifact@main
|
||||||
with:
|
with:
|
||||||
name: terraform-plan
|
name: terraform-plan
|
||||||
path: ${{ inputs.working-directory }}/tfplan
|
path: ${{ inputs.working-directory }}/tfplan
|
||||||
|
|||||||
@@ -1,30 +0,0 @@
|
|||||||
name: Terraform Apply
|
|
||||||
description: Download the "terraform-plan" artifact and apply it
|
|
||||||
|
|
||||||
inputs:
|
|
||||||
working-directory:
|
|
||||||
description: Directory containing the Terraform configuration
|
|
||||||
required: false
|
|
||||||
default: "."
|
|
||||||
|
|
||||||
runs:
|
|
||||||
using: composite
|
|
||||||
steps:
|
|
||||||
- name: Setup Terraform
|
|
||||||
uses: hashicorp/setup-terraform@5e8dbf3c6d9deaf4193ca7a8fb23f2ac83bb6c85 # v4.0.0
|
|
||||||
|
|
||||||
- name: Terraform Init
|
|
||||||
shell: bash
|
|
||||||
working-directory: ${{ inputs.working-directory }}
|
|
||||||
run: terraform init
|
|
||||||
|
|
||||||
- name: Download plan artifact
|
|
||||||
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
||||||
with:
|
|
||||||
name: terraform-plan
|
|
||||||
path: ${{ inputs.working-directory }}
|
|
||||||
|
|
||||||
- name: Terraform Apply
|
|
||||||
shell: bash
|
|
||||||
working-directory: ${{ inputs.working-directory }}
|
|
||||||
run: terraform apply -auto-approve tfplan
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
name: Terraform Plan
|
|
||||||
description: Run terraform plan and publish the plan as an artifact named "terraform-plan"
|
|
||||||
|
|
||||||
inputs:
|
|
||||||
working-directory:
|
|
||||||
description: Directory containing the Terraform configuration
|
|
||||||
required: false
|
|
||||||
default: "."
|
|
||||||
|
|
||||||
runs:
|
|
||||||
using: composite
|
|
||||||
steps:
|
|
||||||
- name: Setup Terraform
|
|
||||||
uses: hashicorp/setup-terraform@5e8dbf3c6d9deaf4193ca7a8fb23f2ac83bb6c85 # v4.0.0
|
|
||||||
|
|
||||||
- name: Terraform Init
|
|
||||||
shell: bash
|
|
||||||
working-directory: ${{ inputs.working-directory }}
|
|
||||||
run: terraform init
|
|
||||||
|
|
||||||
- name: Terraform Plan
|
|
||||||
shell: bash
|
|
||||||
working-directory: ${{ inputs.working-directory }}
|
|
||||||
run: terraform plan -out=tfplan
|
|
||||||
|
|
||||||
- name: Upload plan artifact
|
|
||||||
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
|
|
||||||
with:
|
|
||||||
name: terraform-plan
|
|
||||||
path: ${{ inputs.working-directory }}/tfplan
|
|
||||||
retention-days: 5
|
|
||||||
Reference in New Issue
Block a user