Skip to content

Commit

Permalink
add build-secrets option (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunkickr authored May 22, 2024
1 parent f13ad36 commit 82a10f7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 82a10f7

Please sign in to comment.