Skip to content

Commit cdca1a1

Browse files
author
utam0k
authored
Merge pull request #51 from gitpod-io/kylos101/upgrade-buildkit
Upgrade buildkit from 0.10.0 to 0.10.1
2 parents f28d270 + a29a4b7 commit cdca1a1

File tree

7 files changed

+61
-44
lines changed

7 files changed

+61
-44
lines changed

.github/workflows/build.yaml

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout code
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v3
1515
- name: Setup Golang
16-
uses: actions/setup-go@v1
16+
uses: actions/setup-go@v3
1717
with:
1818
go-version: '1.17.5'
1919
- name: Download all Go modules
@@ -29,9 +29,9 @@ jobs:
2929
runs-on: ubuntu-latest
3030
steps:
3131
- name: Checkout code
32-
uses: actions/checkout@v2
32+
uses: actions/checkout@v3
3333
- name: Setup Golang
34-
uses: actions/setup-go@v1
34+
uses: actions/setup-go@v3
3535
with:
3636
go-version: '1.17.5'
3737
- name: Restore go build cache
@@ -48,11 +48,15 @@ jobs:
4848
runs-on: ubuntu-latest
4949
steps:
5050
- name: Checkout code
51-
uses: actions/checkout@v2
51+
uses: actions/checkout@v3
52+
- name: Setup Golang
53+
uses: actions/setup-go@v3
54+
with:
55+
go-version: '1.17.5'
5256
- name: Run golangci-lint
53-
uses: golangci/golangci-lint-action@v2
57+
uses: golangci/golangci-lint-action@v3.1.0
5458
with:
55-
version: v1.39.0
59+
version: v1.45.2
5660
args: --timeout 5m
5761

5862
test-go:
@@ -69,9 +73,9 @@ jobs:
6973
- 5000:5000
7074
steps:
7175
- name: Checkout code
72-
uses: actions/checkout@v2
76+
uses: actions/checkout@v3
7377
- name: Setup Golang
74-
uses: actions/setup-go@v1
78+
uses: actions/setup-go@v3
7579
with:
7680
go-version: '1.17.5'
7781
- name: Restore go build cache
@@ -86,7 +90,7 @@ jobs:
8690
run: pushd pkg/test/runner; ./build.sh; popd
8791
- name: Install the latest buildkit release
8892
run: |
89-
curl -sSL "https://github.com/moby/buildkit/releases/download/v0.10.0/buildkit-v0.10.0.linux-amd64.tar.gz" | sudo tar -xz -C /usr/local
93+
curl -sSL "https://github.com/moby/buildkit/releases/download/v0.10.1/buildkit-v0.10.1.linux-amd64.tar.gz" | sudo tar -xz -C /usr/local
9094
- name: Start buildkit daemon
9195
run: |
9296
sudo --non-interactive --shell <<END_SUDO
@@ -113,9 +117,9 @@ jobs:
113117
- build-go
114118
steps:
115119
- name: Checkout code
116-
uses: actions/checkout@v2
120+
uses: actions/checkout@v3
117121
- name: Setup Golang
118-
uses: actions/setup-go@v1
122+
uses: actions/setup-go@v3
119123
with:
120124
go-version: '1.17.5'
121125
- name: Restore go build cache
@@ -136,7 +140,7 @@ jobs:
136140
- test-go
137141
steps:
138142
- name: Checkout code
139-
uses: actions/checkout@v2
143+
uses: actions/checkout@v3
140144
with:
141145
fetch-depth: 0
142146
- name: Create test-results directory

.github/workflows/release.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ jobs:
1111
steps:
1212
-
1313
name: Checkout
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v3
1515
with:
1616
fetch-depth: 0
1717
-
18-
name: Set up Go
19-
uses: actions/setup-go@v2
18+
name: Setup Golang
19+
uses: actions/setup-go@v3
2020
with:
21-
go-version: 1.17.2
22-
-
21+
go-version: '1.17.5'
22+
-
2323
name: Docker Login
2424
uses: docker/login-action@v1
2525
with:

.gitpod.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ USER root
44
ENV TRIGGER_REBUILD=1
55
RUN echo 'deb [trusted=yes] https://repo.goreleaser.com/apt/ /' | sudo tee /etc/apt/sources.list.d/goreleaser.list \
66
&& install-packages goreleaser -y
7-
RUN sudo su -c "cd /usr; curl -L https://github.com/moby/buildkit/releases/download/v0.10.0/buildkit-v0.10.0.linux-amd64.tar.gz | tar xvz"
7+
RUN sudo su -c "cd /usr; curl -L https://github.com/moby/buildkit/releases/download/v0.10.1/buildkit-v0.10.1.linux-amd64.tar.gz | tar xvz"
88
# NOTE: remove when workspace-full includes golangci
99
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sudo BINDIR=/usr/local/bin sh
1010

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM moby/buildkit:v0.9.3
1+
FROM moby/buildkit:v0.10.1
22
WORKDIR /dazzle
33
COPY dazzle README.md /dazzle/
44
ENV PATH=/dazzle:$PATH

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ For example, if you're building an image that serves as a collection of tools, t
2828
- consider this alpha-level software
2929

3030
### Requirements
31-
Install and run [buildkit](https://github.com/moby/buildkit/releases) - currently 0.10.0 - in the background.
31+
Install and run [buildkit](https://github.com/moby/buildkit/releases) - currently 0.10.1 - in the background.
3232
Pull and run a docker registry.
3333

3434
NOTE: if you are running it in Gitpod this is done for you!
3535

3636
```bash
37-
sudo su -c "cd /usr; curl -L https://github.com/moby/buildkit/releases/download/v0.10.0/buildkit-v0.10.0.linux-amd64.tar.gz | tar xvz"
37+
sudo su -c "cd /usr; curl -L https://github.com/moby/buildkit/releases/download/v0.10.1/buildkit-v0.10.1.linux-amd64.tar.gz | tar xvz"
3838
docker run -p 5000:5000 --name registry --rm registry:2
3939
```
4040

go.mod

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ require (
88
github.com/alecthomas/repr v0.0.0-20220113201626-b1b626ac65ae
99
github.com/bmatcuk/doublestar v1.3.4
1010
github.com/containerd/console v1.0.3
11-
github.com/containerd/containerd v1.6.1
11+
github.com/containerd/containerd v1.6.3-0.20220401172941-5ff8fce1fcc6
1212
github.com/creack/pty v1.1.17
1313
github.com/docker/cli v20.10.13+incompatible
1414
github.com/docker/distribution v2.8.1+incompatible
@@ -17,9 +17,9 @@ require (
1717
github.com/manifoldco/promptui v0.9.0
1818
github.com/mattn/go-isatty v0.0.14
1919
github.com/minio/highwayhash v1.0.2
20-
github.com/moby/buildkit v0.10.0
20+
github.com/moby/buildkit v0.10.1
2121
github.com/opencontainers/go-digest v1.0.0
22-
github.com/opencontainers/image-spec v1.0.2-0.20211117181255-693428a734f5
22+
github.com/opencontainers/image-spec v1.0.3-0.20211202183452-c5a74bcca799
2323
github.com/robertkrimen/otto v0.0.0-20211024170158-b87d35c0b86f
2424
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06
2525
github.com/sirupsen/logrus v1.8.1
@@ -29,9 +29,10 @@ require (
2929
)
3030

3131
require (
32+
cloud.google.com/go v0.81.0 // indirect
3233
github.com/Microsoft/go-winio v0.5.1 // indirect
3334
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e // indirect
34-
github.com/containerd/continuity v0.2.2 // indirect
35+
github.com/containerd/continuity v0.2.3-0.20220330195504-d132b287edc8 // indirect
3536
github.com/containerd/typeurl v1.0.2 // indirect
3637
github.com/daaku/go.zipexe v1.0.0 // indirect
3738
github.com/docker/docker v20.10.7+incompatible // indirect
@@ -47,7 +48,8 @@ require (
4748
github.com/grpc-ecosystem/grpc-gateway v1.16.0 // indirect
4849
github.com/iancoleman/orderedmap v0.0.0-20190318233801-ac98e3ecb4b0 // indirect
4950
github.com/inconshreveable/mousetrap v1.0.0 // indirect
50-
github.com/klauspost/compress v1.15.0 // indirect
51+
github.com/klauspost/compress v1.15.1 // indirect
52+
github.com/kr/text v0.2.0 // indirect
5153
github.com/moby/locker v1.0.1 // indirect
5254
github.com/moby/sys/signal v0.6.0 // indirect
5355
github.com/morikuni/aec v1.0.0 // indirect
@@ -69,8 +71,9 @@ require (
6971
golang.org/x/text v0.3.7 // indirect
7072
golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac // indirect
7173
google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa // indirect
72-
google.golang.org/grpc v1.44.0 // indirect
74+
google.golang.org/grpc v1.45.0 // indirect
7375
google.golang.org/protobuf v1.27.1 // indirect
76+
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
7477
gopkg.in/sourcemap.v1 v1.0.5 // indirect
7578
)
7679

0 commit comments

Comments
 (0)