@@ -5,6 +5,19 @@ branding:
55 icon : ' box'
66 color : ' white'
77inputs :
8+ allow :
9+ description : " List of extra privileged entitlement (e.g., network.host,security.insecure)"
10+ required : false
11+ network :
12+ description : " Set the networking mode for the RUN instructions during build"
13+ required : false
14+ buildkitd-flags :
15+ description : ' BuildKit daemon flags'
16+ default : ' --allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host'
17+ required : false
18+ driver-opts :
19+ description : ' List of additional driver-specific options. (eg. image=moby/buildkit:master)'
20+ required : false
821 workdir :
922 description : ' Working directory'
1023 required : false
@@ -76,6 +89,10 @@ inputs:
7689 description : " Set to `true` to tag images with the PR HEAD SHA instead of the merge commit SHA within pull requests."
7790 required : false
7891 default : " false"
92+ debug :
93+ description : " Enable debug mode"
94+ required : false
95+ default : " false"
7996outputs :
8097 image :
8198 description : " Docker image name"
@@ -164,7 +181,8 @@ runs:
164181 uses : docker/setup-buildx-action@v3
165182 with :
166183 endpoint : buildx-context
167-
184+ buildkitd-flags : " ${{ inputs.debug == 'true' && '--debug' || '' }} ${{ inputs.buildkitd-flags }}"
185+ driver-opts : ${{ inputs.driver-opts }}
168186 - name : Login
169187 uses : docker/login-action@v3
170188 if : ${{ contains(inputs.registry, '.amazonaws.com') || ( inputs.login != '' && inputs.password != '' ) }}
@@ -177,6 +195,8 @@ runs:
177195 uses : docker/build-push-action@v5
178196 id : docker-build-push-action
179197 with :
198+ allow : ${{ inputs.allow }}
199+ network : ${{ inputs.network }}
180200 context : ${{ inputs.workdir }}
181201 file : ${{ inputs.workdir }}/${{ inputs.file }}
182202 pull : true
0 commit comments