Skip to content

Commit

Permalink
Update nodejs installation method in release container (#27207)
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind committed Sep 23, 2023
1 parent bcb78e7 commit 6e2888c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6e2888c

Please sign in to comment.