Skip to content

Commit 0ad1107

Browse files
authored
Add secrets and secret-files parameters (#33)
2 parents ac00b08 + c04af4b commit 0ad1107

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

action.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ inputs:
5959
tags:
6060
description: "List of tags (supports https://github.com/docker/metadata-action#tags-input)"
6161
required: false
62+
secrets:
63+
description: "List of secrets to expose to the build (e.g., key=string, GIT_AUTH_TOKEN=mytoken)"
64+
required: false
65+
secret-files:
66+
description: "List of secret files to expose to the build (e.g., key=filename, MY_SECRET=./secret.txt)"
67+
required: false
6268
outputs:
6369
image:
6470
description: "Docker image name"
@@ -152,6 +158,8 @@ runs:
152158
target: ${{ inputs.target }}
153159
labels: ${{ steps.meta.outputs.labels }}
154160
platforms: ${{ inputs.platforms }}
161+
secrets: ${{ inputs.secrets }}
162+
secret-files: ${{ inputs.secret-files }}
155163

156164
- name: Get Metadata
157165
id: get-metadata

0 commit comments

Comments
 (0)