mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: pin various dependencies in CI files (#17180)
This commit is contained in:
@@ -860,7 +860,7 @@ jobs:
|
||||
run: |
|
||||
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.30
|
||||
go install storj.io/drpc/cmd/protoc-gen-go-drpc@v0.0.34
|
||||
go install golang.org/x/tools/cmd/goimports@latest
|
||||
go install golang.org/x/tools/cmd/goimports@v0.31.0
|
||||
go install github.com/mikefarah/yq/v4@v4.44.3
|
||||
go install go.uber.org/mock/mockgen@v0.5.0
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ RUN apt-get update && \
|
||||
# go-swagger tool to generate the go coder api client
|
||||
go install github.com/go-swagger/go-swagger/cmd/swagger@v0.28.0 && \
|
||||
# goimports for updating imports
|
||||
go install golang.org/x/tools/cmd/goimports@v0.1.7 && \
|
||||
go install golang.org/x/tools/cmd/goimports@v0.31.0 && \
|
||||
# protoc-gen-go is needed to build sysbox from source
|
||||
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.30 && \
|
||||
# drpc support for v2
|
||||
@@ -45,7 +45,7 @@ RUN apt-get update && \
|
||||
go install github.com/goreleaser/goreleaser@v1.6.1 && \
|
||||
# Install the latest version of gopls for editors that support
|
||||
# the language server protocol
|
||||
go install golang.org/x/tools/gopls@latest && \
|
||||
go install golang.org/x/tools/gopls@v0.18.1 && \
|
||||
# gotestsum makes test output more readable
|
||||
go install gotest.tools/gotestsum@v1.9.0 && \
|
||||
# goveralls collects code coverage metrics from tests
|
||||
@@ -84,7 +84,8 @@ RUN apt-get update && \
|
||||
rm -rf /tmp/go/pkg && \
|
||||
rm -rf /tmp/go/src
|
||||
|
||||
FROM gcr.io/coder-dev-1/alpine:3.18 as proto
|
||||
# alpine:3.18
|
||||
FROM gcr.io/coder-dev-1/alpine@sha256:25fad2a32ad1f6f510e528448ae1ec69a28ef81916a004d3629874104f8a7f70 AS proto
|
||||
WORKDIR /tmp
|
||||
RUN apk add curl unzip
|
||||
RUN curl -L -o protoc.zip https://github.com/protocolbuffers/protobuf/releases/download/v23.4/protoc-23.4-linux-x86_64.zip && \
|
||||
@@ -232,18 +233,22 @@ RUN DOCTL_VERSION=$(curl -s "https://api.github.com/repos/digitalocean/doctl/rel
|
||||
tar xf doctl.tar.gz -C /usr/local/bin doctl && \
|
||||
rm doctl.tar.gz
|
||||
|
||||
ARG NVM_INSTALL_SHA=bdea8c52186c4dd12657e77e7515509cda5bf9fa5a2f0046bce749e62645076d
|
||||
# Install frontend utilities
|
||||
ENV NVM_DIR=/usr/local/nvm
|
||||
ENV NODE_VERSION=20.16.0
|
||||
RUN mkdir -p $NVM_DIR
|
||||
RUN curl https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
|
||||
RUN curl -o nvm_install.sh https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh && \
|
||||
echo "${NVM_INSTALL_SHA} nvm_install.sh" | sha256sum -c && \
|
||||
bash nvm_install.sh && \
|
||||
rm nvm_install.sh
|
||||
RUN source $NVM_DIR/nvm.sh && \
|
||||
nvm install $NODE_VERSION && \
|
||||
nvm use $NODE_VERSION
|
||||
ENV PATH=$NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
|
||||
# Allow patch updates for npm and pnpm
|
||||
RUN npm install -g npm@^10.8
|
||||
RUN npm install -g pnpm@^9.6
|
||||
RUN npm install -g npm@10.8.1
|
||||
RUN npm install -g pnpm@9.15.1
|
||||
|
||||
RUN pnpx playwright@1.47.0 install --with-deps chromium
|
||||
|
||||
|
||||
Reference in New Issue
Block a user