fix(build): ensure a minimum go version in the build process.

This commit is contained in:
Alexandre Pujol 2023-04-17 11:26:09 +01:00
parent 22b12fade0
commit 7c0863867e
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC
2 changed files with 5 additions and 2 deletions

View File

@ -74,7 +74,8 @@ debian:
- git config --global --add safe.directory $CI_PROJECT_DIR
- VERSION="0.$(git rev-list --count HEAD)-1"
- mkdir -p "$PKGDEST"
- sudo apt-get update -q && sudo apt-get install -y golang-go lsb-release config-package-dev rsync
- sudo apt-get update -q && sudo apt-get install -y lsb-release config-package-dev rsync
- sudo apt-get install -y -t bullseye-backports golang-go
- dch --newversion=$VERSION --urgency=medium --distribution=stable --controlmaint "Release $VERSION"
- dpkg-buildpackage -b -d --no-sign
- mv ../*.deb $PKGDEST/

View File

@ -80,7 +80,9 @@ build_in_docker_dpkg() {
--env DEBIAN_FRONTEND=noninteractive --env DIST="$dist" \
"$BASEIMAGE/$dist"
docker exec "$img" sudo apt-get update -q
docker exec "$img" sudo apt-get install -y golang-go lsb-release config-package-dev rsync
docker exec "$img" sudo apt-get install -y lsb-release config-package-dev rsync
[[ "$COMMAND" == debian ]] && aptopt=(-t bullseye-backports)
docker exec "$img" sudo apt-get install -y "${aptopt[@]}" golang-go
fi
docker exec --workdir="$BUILDIR/$PKGNAME" "$img" \