install go1.21.9
This commit is contained in:
parent
03fcb8fe81
commit
391360b320
|
@ -155,6 +155,13 @@ case "$1" in
|
||||||
ln -sf /usr/lib/go-$DEP_GOLANG_VER/bin/go /usr/local/bin/go
|
ln -sf /usr/lib/go-$DEP_GOLANG_VER/bin/go /usr/local/bin/go
|
||||||
adduser --quiet --comment forgejo --disabled-password forgejo
|
adduser --quiet --comment forgejo --disabled-password forgejo
|
||||||
chown -R forgejo:forgejo .
|
chown -R forgejo:forgejo .
|
||||||
|
if [ "$DEP_GOLANG_NODEB_REV" ];then
|
||||||
|
go install golang.org/dl/go$DEP_GOLANG_VER.$DEP_GOLANG_NODEB_REV@latest
|
||||||
|
ln -s ~/go/bin/go$DEP_GOLANG_VER.$DEP_GOLANG_NODEB_REV ~/go/bin/go
|
||||||
|
export PATH="$HOME/go/bin:$PATH"
|
||||||
|
go download
|
||||||
|
go version
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,7 @@ variables:
|
||||||
- &deb_test_image_mantic 'sc.cryxtal.org/ci-img/deb-test-ubuntu:mantic'
|
- &deb_test_image_mantic 'sc.cryxtal.org/ci-img/deb-test-ubuntu:mantic'
|
||||||
- &deb_test_image_lunar 'sc.cryxtal.org/ci-img/deb-test-ubuntu:lunar'
|
- &deb_test_image_lunar 'sc.cryxtal.org/ci-img/deb-test-ubuntu:lunar'
|
||||||
- &forgejo_test_golang_ver '1.21'
|
- &forgejo_test_golang_ver '1.21'
|
||||||
|
- &forgejo_test_golang_nodeb_rev '9'
|
||||||
- &build_submodule 'forgejo'
|
- &build_submodule 'forgejo'
|
||||||
- &goproxy_override ''
|
- &goproxy_override ''
|
||||||
- &goproxy_setup |-
|
- &goproxy_setup |-
|
||||||
|
@ -112,6 +113,7 @@ steps:
|
||||||
environment:
|
environment:
|
||||||
GOPROXY_OVERRIDE: *goproxy_override
|
GOPROXY_OVERRIDE: *goproxy_override
|
||||||
DEP_GOLANG_VER: *forgejo_test_golang_ver
|
DEP_GOLANG_VER: *forgejo_test_golang_ver
|
||||||
|
DEP_GOLANG_NODEB_REV: *forgejo_test_golang_nodeb_rev
|
||||||
commands:
|
commands:
|
||||||
- *goproxy_setup
|
- *goproxy_setup
|
||||||
- ./.ci-make.sh forgejo-test-deps
|
- ./.ci-make.sh forgejo-test-deps
|
||||||
|
|
Loading…
Reference in a new issue