ci: need sudo on go install, chmod it, then access it directly
This commit is contained in:
parent
c08e130e97
commit
47f768b20b
|
@ -4,9 +4,11 @@ if ! command -v go &>/dev/null; then
|
|||
sudo apt-get update && sudo apt-get install -y golang
|
||||
fi
|
||||
|
||||
go install github.com/goreleaser/nfpm/v2/cmd/nfpm@latest
|
||||
sudo go install github.com/goreleaser/nfpm/v2/cmd/nfpm@latest
|
||||
sudo chmod +x /root/go/bin/nfpm
|
||||
|
||||
yq -i ".version=\"${1}\"" nfpm.yaml
|
||||
nfpm package -p deb
|
||||
sudo /root/go/bin/nfpm package -p deb
|
||||
|
||||
pip install --upgrade cloudsmith-cli
|
||||
cloudsmith push deb lumeweb/lume-web-relay *.deb
|
||||
|
|
Loading…
Reference in New Issue