ci: encrypt artifacts (#2567)

This commit is contained in:
miampf 2023-12-20 14:17:49 +00:00 committed by GitHub
parent 0e84c6cc3e
commit a429ca50e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 224 additions and 48 deletions

View file

@ -1,5 +1,10 @@
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"
@ -15,10 +20,11 @@ runs:
zip -r terraform-module.zip terraform-module
- name: Upload artifact
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3
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