File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -98,10 +98,23 @@ inputs:
98
98
registry-password :
99
99
description : ' The docker registry password'
100
100
required : false
101
+ buildkit-version :
102
+ description : ' The buildkit version to use'
103
+ required : false
104
+ default : ' v0.22.0'
101
105
runs :
102
106
using : ' composite'
103
107
steps :
104
- - shell : bash
108
+ - name : install buildkit
109
+ shell : bash
110
+ env :
111
+ ARCH : ${{ runner.arch }}
112
+ BUILDKIT_VERSION : ${{ inputs.buildkit-version }}
113
+ run : |
114
+ wget -q "https://github.com/moby/buildkit/releases/download/$BUILDKIT_VERSION/buildkit-$BUILDKIT_VERSION.linux-$ARCH.tar.gz" && mkdir buildkit && cat buildkit-$BUILDKIT_VERSION.linux-$ARCH.tar.gz | tar -C buildkit -zxvf - && mv buildkit/bin/buildctl /usr/bin/buildctl && rm -rf buildkit
115
+
116
+ - name : build and push
117
+ shell : bash
105
118
env :
106
119
INPUT_PATH : ${{ inputs.path }}
107
120
INPUT_SECRET : ${{ inputs.secrets }}
You can’t perform that action at this time.
0 commit comments