2023-12-14 09:47:55 -05:00
|
|
|
name: Upload Terraform infrastructure module
|
|
|
|
description: "Upload the Terraform infrastructure module as an artifact."
|
2023-12-20 09:17:49 -05:00
|
|
|
inputs:
|
2023-12-21 13:28:18 -05:00
|
|
|
encryptionSecret:
|
2023-12-20 09:17:49 -05:00
|
|
|
description: 'The secret to use for encrypting the artifact.'
|
|
|
|
required: true
|
|
|
|
|
2023-11-13 12:46:20 -05:00
|
|
|
|
2023-11-08 13:10:01 -05:00
|
|
|
runs:
|
|
|
|
using: "composite"
|
|
|
|
steps:
|
|
|
|
- name: Copy Terraform module
|
|
|
|
shell: bash
|
|
|
|
run: |
|
2023-12-14 09:47:55 -05:00
|
|
|
cp -r terraform/infrastructure terraform-module
|
2023-11-13 12:46:20 -05:00
|
|
|
|
2023-11-08 13:10:01 -05:00
|
|
|
- name: Zip terraform dir
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
zip -r terraform-module.zip terraform-module
|
2023-11-13 12:46:20 -05:00
|
|
|
|
2023-11-08 13:10:01 -05:00
|
|
|
- name: Upload artifact
|
2023-12-20 09:17:49 -05:00
|
|
|
uses: ./.github/actions/artifact_upload
|
2023-11-08 13:10:01 -05:00
|
|
|
with:
|
|
|
|
name: terraform-module
|
|
|
|
path: terraform-module.zip
|
2023-12-21 13:28:18 -05:00
|
|
|
encryptionSecret: ${{ inputs.encryptionSecret }}
|
2023-11-13 12:46:20 -05:00
|
|
|
|
2023-11-08 13:10:01 -05:00
|
|
|
- name: Cleanup Terraform module dir
|
|
|
|
shell: bash
|
|
|
|
run: |
|
2023-11-10 07:32:18 -05:00
|
|
|
rm -r terraform-module terraform-module.zip
|