mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Update nodejs installation method in release container (#27207)
This commit is contained in:
		@@ -44,7 +44,10 @@ steps:
 | 
				
			|||||||
    image: techknowlogick/xgo:go-1.21.x
 | 
					    image: techknowlogick/xgo:go-1.21.x
 | 
				
			||||||
    pull: always
 | 
					    pull: always
 | 
				
			||||||
    commands:
 | 
					    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
 | 
					      - export PATH=$PATH:$GOPATH/bin
 | 
				
			||||||
      - make release
 | 
					      - make release
 | 
				
			||||||
    environment:
 | 
					    environment:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user