mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-12 09:24:24 -05:00
33 lines
848 B
YAML
33 lines
848 B
YAML
name: Upload Terraform infrastructure module
|
|
description: "Upload the Terraform infrastructure module as an artifact."
|
|
inputs:
|
|
encryption-secret:
|
|
description: 'The secret to use for encrypting the artifact.'
|
|
required: true
|
|
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Copy Terraform module
|
|
shell: bash
|
|
run: |
|
|
cp -r terraform/infrastructure terraform-module
|
|
|
|
- name: Zip terraform dir
|
|
shell: bash
|
|
run: |
|
|
zip -r terraform-module.zip terraform-module
|
|
|
|
- name: Upload artifact
|
|
uses: ./.github/actions/artifact_upload
|
|
with:
|
|
name: terraform-module
|
|
path: terraform-module.zip
|
|
encryption-secret: ${{ inputs.encryption-secret }}
|
|
|
|
- name: Cleanup Terraform module dir
|
|
shell: bash
|
|
run: |
|
|
rm -r terraform-module terraform-module.zip
|