Skip to content

Commit 8291cb9

Browse files
goruhajohncblandii
andauthored
feat: add support for build-contexts (#70) (#71)
Co-authored-by: John C. Bland II <[email protected]>
1 parent a159f59 commit 8291cb9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ inputs:
1111
network:
1212
description: "Set the networking mode for the RUN instructions during build"
1313
required: false
14+
build-contexts:
15+
description: "List of additional build contexts (e.g., name=path)"
16+
required: false
1417
buildkitd-flags:
1518
description: 'BuildKit daemon flags'
1619
default: '--allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host'
@@ -183,6 +186,7 @@ runs:
183186
endpoint: buildx-context
184187
buildkitd-flags: "${{ inputs.debug == 'true' && '--debug' || '' }} ${{ inputs.buildkitd-flags }}"
185188
driver-opts: ${{ inputs.driver-opts }}
189+
186190
- name: Login
187191
uses: docker/login-action@v3
188192
if: ${{ contains(inputs.registry, '.amazonaws.com') || ( inputs.login != '' && inputs.password != '' ) }}
@@ -203,6 +207,7 @@ runs:
203207
push: true
204208
ssh: ${{ inputs.ssh }}
205209
build-args: ${{ inputs.build-args }}
210+
build-contexts: ${{ inputs.build-contexts }}
206211
cache-from: ${{ inputs.cache-from }}
207212
cache-to: ${{ inputs.cache-to }}
208213
no-cache: ${{ inputs.no-cache }}

0 commit comments

Comments
 (0)