9696 build-args :
9797 type : string
9898 default : " "
99- description : Newline separated list of build arguments to pass to the Docker build.
99+ description : Newline separated list of build arguments to pass to the Docker build.
100+ secrets :
101+ type : string
102+ default : " "
103+ description : secrets to use inside docker-build separated by newlines. ref: https://docs.docker.com/build/ci/github-actions/secrets/
100104 secrets :
101105 git-ssh-key :
102106 description : SSH key used by Git to checkout the repository.
@@ -192,6 +196,7 @@ jobs:
192196 pull : true
193197 tags : ${{ inputs.name }}:${{ steps.setup.outputs.unique-id }}
194198 build-args : ${{ inputs.build-args }}
199+ secrets : ${{ inputs.secrets }}
195200 outputs : type=docker
196201 -
197202 if : inputs.cache == true && !inputs.ssh-agent
@@ -204,6 +209,7 @@ jobs:
204209 pull : true
205210 tags : ${{ inputs.name }}:${{ steps.setup.outputs.unique-id }}
206211 build-args : ${{ inputs.build-args }}
212+ secrets : ${{ inputs.secrets }}
207213 outputs : type=docker
208214 cache-from : type=registry,ref=${{ inputs.registry-url }}/${{ inputs.name }}:${{ inputs.cache-tag }}
209215 cache-to : type=registry,ref=${{ inputs.registry-url }}/${{ inputs.name }}:${{ inputs.cache-tag }},mode=max,ignore-error=true
@@ -217,7 +223,8 @@ jobs:
217223 push : false
218224 pull : true
219225 tags : ${{ inputs.name }}:${{ steps.setup.outputs.unique-id }}
220- build-args : ${{ inputs.build-args }}
226+ build-args : ${{ inputs.build-args }}
227+ secrets : ${{ inputs.secrets }}
221228 outputs : type=docker
222229 ssh : |
223230 default=${{ env.SSH_AUTH_SOCK }}
@@ -232,6 +239,7 @@ jobs:
232239 pull : true
233240 tags : ${{ inputs.name }}:${{ steps.setup.outputs.unique-id }}
234241 build-args : ${{ inputs.build-args }}
242+ secrets : ${{ inputs.secrets }}
235243 outputs : type=docker
236244 cache-from : type=registry,ref=${{ inputs.registry-url }}/${{ inputs.name }}:${{ inputs.cache-tag }}
237245 cache-to : type=registry,ref=${{ inputs.registry-url }}/${{ inputs.name }}:${{ inputs.cache-tag }},mode=max,ignore-error=true
0 commit comments