mirror of
https://github.com/valitydev/jesse.git
synced 2024-11-06 09:35:23 +00:00
can't use debian backports to install newer git on jessie (debian 8)
This commit is contained in:
parent
91656abda7
commit
4f9c52b1e0
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
@ -51,18 +51,14 @@ jobs:
|
|||||||
- shell: bash
|
- shell: bash
|
||||||
run: |
|
run: |
|
||||||
# upgrade git to 2.18+ for actions/checkout@v2
|
# upgrade git to 2.18+ for actions/checkout@v2
|
||||||
|
# NOTE can't use backports; see git history
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
set -x
|
set -x
|
||||||
# some erlang containers are based on jesse, some or stretch, etc
|
echo "deb http://ftp.debian.org/debian/ stable main contrib non-free" >>/etc/apt/sources.list
|
||||||
# NOTE jesse has no VERSION_CODENAME in /etc/os-release
|
|
||||||
# NOTE lsb_release is not installed
|
|
||||||
# see https://unix.stackexchange.com/questions/180776/how-to-get-debian-codename-without-lsb-release
|
|
||||||
VERSION_CODENAME=$(dpkg --status tzdata|grep Provides|cut -f2 -d'-')
|
|
||||||
VCB=${VERSION_CODENAME}-backports
|
|
||||||
echo "deb http://cloudfront.debian.net/debian ${VCB} main" >>/etc/apt/sources.list.d/${VCB}.list
|
|
||||||
echo "deb-src http://cloudfront.debian.net/debian ${VCB} main" >>/etc/apt/sources.list.d/${VCB}.list
|
|
||||||
apt-get update -y --fix-missing -o Acquire::Check-Valid-Until=false
|
apt-get update -y --fix-missing -o Acquire::Check-Valid-Until=false
|
||||||
apt-get -t ${VCB} install -y git
|
# libc6-dev : Breaks: binutils (< 2.26) but 2.25-5+deb8u1 is to be installed
|
||||||
|
apt-get remove -y --force-yes binutils
|
||||||
|
apt-get install -y --force-yes git
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- shell: bash
|
- shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
Reference in New Issue
Block a user