@@ -5,6 +5,19 @@ branding:
5
5
icon : ' box'
6
6
color : ' white'
7
7
inputs :
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
8
21
workdir :
9
22
description : ' Working directory'
10
23
required : false
@@ -76,6 +89,10 @@ inputs:
76
89
description : " Set to `true` to tag images with the PR HEAD SHA instead of the merge commit SHA within pull requests."
77
90
required : false
78
91
default : " false"
92
+ debug :
93
+ description : " Enable debug mode"
94
+ required : false
95
+ default : " false"
79
96
outputs :
80
97
image :
81
98
description : " Docker image name"
@@ -164,7 +181,8 @@ runs:
164
181
uses : docker/setup-buildx-action@v3
165
182
with :
166
183
endpoint : buildx-context
167
-
184
+ buildkitd-flags : " ${{ inputs.debug == 'true' && '--debug' || '' }} ${{ inputs.buildkitd-flags }}"
185
+ driver-opts : ${{ inputs.driver-opts }}
168
186
- name : Login
169
187
uses : docker/login-action@v3
170
188
if : ${{ contains(inputs.registry, '.amazonaws.com') || ( inputs.login != '' && inputs.password != '' ) }}
@@ -177,6 +195,8 @@ runs:
177
195
uses : docker/build-push-action@v5
178
196
id : docker-build-push-action
179
197
with :
198
+ allow : ${{ inputs.allow }}
199
+ network : ${{ inputs.network }}
180
200
context : ${{ inputs.workdir }}
181
201
file : ${{ inputs.workdir }}/${{ inputs.file }}
182
202
pull : true
0 commit comments