Skip to content

Commit 82a10f7

Browse files
authored
add build-secrets option (#61)
1 parent f13ad36 commit 82a10f7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

action.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ inputs:
7979
required: false
8080
default: false
8181
description: "If true image and DAGs will deploy"
82+
build-secrets:
83+
required: false
84+
description: "Mimics docker build --secret flag. See https://docs.docker.com/build/building/secrets/ for more information. Example input 'id=mysecret,src=secrets.txt'"
8285
outputs:
8386
preview-id:
8487
description: "The ID of the created deployment preview. Only works when action=create-deployment-preview"
@@ -330,6 +333,11 @@ runs:
330333
options="$options --description '${{ inputs.description }}'"
331334
fi
332335
336+
# Add build-secrets option
337+
if [[ "${{ inputs.build-secrets }}" != '' ]]; then
338+
options="$options --build-secrets '${{ inputs.build-secrets }}'"
339+
fi
340+
333341
echo "OPTIONS=$options" >> $GITHUB_OUTPUT
334342
shell: bash
335343
id: deploy-options

0 commit comments

Comments
 (0)