Skip to content

Commit 748e91e

Browse files
committed
chore: wip
1 parent a021366 commit 748e91e

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

actions/buildkit/action.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,23 @@ inputs:
9898
registry-password:
9999
description: 'The docker registry password'
100100
required: false
101+
buildkit-version:
102+
description: 'The buildkit version to use'
103+
required: false
104+
default: 'v0.22.0'
101105
runs:
102106
using: 'composite'
103107
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
105118
env:
106119
INPUT_PATH: ${{ inputs.path }}
107120
INPUT_SECRET: ${{ inputs.secrets }}

0 commit comments

Comments
 (0)