mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-13 01:44:22 -05:00
8c1972c335
* Fix parameter expansion when uploading multiple files * On download, ensure target directory exists * Rename encryption-secret -> encryptionSecret * Remove incorrect secret access from e2e test action * Add missing checkout action to workflows using our download action * Fix spacing * Fix upload action uploading whole directory structure instead of target files * Explicitly give write permissions to Azure disk image, since permissions are no longer dropped on upload --------- Signed-off-by: Daniel Weiße <dw@edgeless.systems>
33 lines
845 B
YAML
33 lines
845 B
YAML
name: Upload Terraform infrastructure module
|
|
description: "Upload the Terraform infrastructure module as an artifact."
|
|
inputs:
|
|
encryptionSecret:
|
|
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
|
|
encryptionSecret: ${{ inputs.encryptionSecret }}
|
|
|
|
- name: Cleanup Terraform module dir
|
|
shell: bash
|
|
run: |
|
|
rm -r terraform-module terraform-module.zip
|