From 6e2888ce27c308ec1f88b9912a520f44cc18c2c3 Mon Sep 17 00:00:00 2001 From: silverwind Date: Sat, 23 Sep 2023 15:18:47 +0200 Subject: [PATCH] Update nodejs installation method in release container (#27207) --- .drone.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 3084351770..1989b6760e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -44,7 +44,10 @@ steps: image: techknowlogick/xgo:go-1.21.x pull: always commands: - - curl -sL https://deb.nodesource.com/setup_20.x | bash - && apt-get -qqy install nodejs + - apt-get update && apt-get -qqy install ca-certificates curl gnupg + - mkdir -p /etc/apt/keyrings && curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg + - echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" > /etc/apt/sources.list.d/nodesource.list + - apt-get update && apt-get -qqy install nodejs - export PATH=$PATH:$GOPATH/bin - make release environment: