provide scripts for enabling sid or experimental
This commit is contained in:
parent
6039fc59c8
commit
6c596bd7b9
10
Dockerfile
10
Dockerfile
|
|
@ -10,14 +10,6 @@ ENV LANG=C.UTF-8 \
|
|||
# * update-alternatives needs ../man1/
|
||||
# * ca-certificates for fetching from HTTPS repos
|
||||
RUN mkdir -p /usr/share/man/man1 \
|
||||
&& printf "Package: *\nPin: release o=Debian,a=stable\nPin-Priority: 900\n" \
|
||||
> /etc/apt/preferences.d/debian-stable.pref \
|
||||
&& echo "deb http://deb.debian.org/debian sid main" >> /etc/apt/sources.list \
|
||||
&& printf "Package: *\nPin: release o=Debian,a=sid\nPin-Priority: 150\n" \
|
||||
> /etc/apt/preferences.d/debian-sid.pref \
|
||||
&& echo "deb http://deb.debian.org/debian experimental main" >> /etc/apt/sources.list \
|
||||
&& printf "Package: *\nPin: release o=Debian,a=experimental\nPin-Priority: 50\n" \
|
||||
> /etc/apt/preferences.d/debian-experimental.pref \
|
||||
&& apt-get update \
|
||||
&& apt-get -qy upgrade \
|
||||
&& apt-get -qy dist-upgrade \
|
||||
|
|
@ -34,5 +26,7 @@ RUN mkdir -p /usr/share/man/man1 \
|
|||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY gitlab-ci-git-buildpackage /
|
||||
COPY gitlab-ci-enable-sid /usr/bin/
|
||||
COPY gitlab-ci-enable-experimental /usr/bin/
|
||||
|
||||
ENTRYPOINT ["/gitlab-ci-git-buildpackage"]
|
||||
|
|
|
|||
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
printf "Package: *\nPin: release o=Debian,a=stable\nPin-Priority: 900\n" \
|
||||
> /etc/apt/preferences.d/debian-stable.pref
|
||||
|
||||
printf "\ndeb http://deb.debian.org/debian experimental main\n" >> /etc/apt/sources.list
|
||||
printf "Package: *\nPin: release o=Debian,a=experimental\nPin-Priority: 50\n" \
|
||||
> /etc/apt/preferences.d/debian-experimental.pref
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
printf "Package: *\nPin: release o=Debian,a=stable\nPin-Priority: 900\n" \
|
||||
> /etc/apt/preferences.d/debian-stable.pref
|
||||
|
||||
printf "\ndeb http://deb.debian.org/debian sid main\n" >> /etc/apt/sources.list
|
||||
printf "Package: *\nPin: release o=Debian,a=sid\nPin-Priority: 150\n" \
|
||||
> /etc/apt/preferences.d/debian-sid.pref
|
||||
|
|
@ -11,6 +11,9 @@ if [[ ! -f $lockfile ]] ; then
|
|||
set -e
|
||||
set -x
|
||||
|
||||
gitlab-ci-enable-sid
|
||||
gitlab-ci-enable-experimental
|
||||
|
||||
apt_get="apt-get -qy"
|
||||
if [ ! -z "$APT_GET_OPTIONS" ]; then
|
||||
apt_get="$apt_get $APT_GET_OPTIONS"
|
||||
|
|
|
|||
Loading…
Reference in New Issue