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