mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
fix(build): ensure a minimum go version in the build process.
This commit is contained in:
parent
22b12fade0
commit
7c0863867e
@ -74,7 +74,8 @@ debian:
|
|||||||
- git config --global --add safe.directory $CI_PROJECT_DIR
|
- git config --global --add safe.directory $CI_PROJECT_DIR
|
||||||
- VERSION="0.$(git rev-list --count HEAD)-1"
|
- VERSION="0.$(git rev-list --count HEAD)-1"
|
||||||
- mkdir -p "$PKGDEST"
|
- 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"
|
- dch --newversion=$VERSION --urgency=medium --distribution=stable --controlmaint "Release $VERSION"
|
||||||
- dpkg-buildpackage -b -d --no-sign
|
- dpkg-buildpackage -b -d --no-sign
|
||||||
- mv ../*.deb $PKGDEST/
|
- mv ../*.deb $PKGDEST/
|
||||||
|
@ -80,7 +80,9 @@ build_in_docker_dpkg() {
|
|||||||
--env DEBIAN_FRONTEND=noninteractive --env DIST="$dist" \
|
--env DEBIAN_FRONTEND=noninteractive --env DIST="$dist" \
|
||||||
"$BASEIMAGE/$dist"
|
"$BASEIMAGE/$dist"
|
||||||
docker exec "$img" sudo apt-get update -q
|
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
|
fi
|
||||||
|
|
||||||
docker exec --workdir="$BUILDIR/$PKGNAME" "$img" \
|
docker exec --workdir="$BUILDIR/$PKGNAME" "$img" \
|
||||||
|
Loading…
Reference in New Issue
Block a user