From 82a10f7a30a62f279416189730debd1738499207 Mon Sep 17 00:00:00 2001 From: David Koenitzer Date: Wed, 22 May 2024 19:57:04 -0400 Subject: [PATCH] add build-secrets option (#61) --- action.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/action.yaml b/action.yaml index b0df5bd..15627a6 100644 --- a/action.yaml +++ b/action.yaml @@ -79,6 +79,9 @@ inputs: required: false default: false description: "If true image and DAGs will deploy" + build-secrets: + required: false + description: "Mimics docker build --secret flag. See https://docs.docker.com/build/building/secrets/ for more information. Example input 'id=mysecret,src=secrets.txt'" outputs: preview-id: description: "The ID of the created deployment preview. Only works when action=create-deployment-preview" @@ -330,6 +333,11 @@ runs: options="$options --description '${{ inputs.description }}'" fi + # Add build-secrets option + if [[ "${{ inputs.build-secrets }}" != '' ]]; then + options="$options --build-secrets '${{ inputs.build-secrets }}'" + fi + echo "OPTIONS=$options" >> $GITHUB_OUTPUT shell: bash id: deploy-options