chore(gitlab-ci): local apt mirror

This commit is contained in:
Gregor Kleen 2020-06-24 15:00:16 +02:00
parent 2544bbe4be
commit 3c7e1cc6fb

View File

@ -30,6 +30,8 @@ npm install:
- ./.npmrc.gup
- npm install
before_script: &npm
- rm -rvf /etc/apt/sources.list /etc/apt/source.list.d
- cp ${APT_SOURCES_LIST} /etc/apt/sources.list
- apt-get update -y
- npm install -g n
- n 13.5.0
@ -89,6 +91,8 @@ yesod:build:dev:
needs:
- frontend:build
before_script: &haskell
- rm -rvf /etc/apt/sources.list /etc/apt/source.list.d
- cp ${APT_SOURCES_LIST} /etc/apt/sources.list
- apt-get update -y
- apt-get install -y --no-install-recommends locales-all
- apt-get install openssh-client -y
@ -137,6 +141,8 @@ frontend:test:
needs:
- npm install
before_script:
- rm -rvf /etc/apt/sources.list /etc/apt/source.list.d
- cp ${APT_SOURCES_LIST} /etc/apt/sources.list
- apt-get update -y
- npm install -g n
- n 13.5.0
@ -235,6 +241,8 @@ deploy:uniworx3:
- hlint # For sanity
- frontend:test # For sanity
before_script:
- rm -rvf /etc/apt/sources.list /etc/apt/source.list.d
- cp ${APT_SOURCES_LIST} /etc/apt/sources.list
- apt-get update -y
- apt-get install -y --no-install-recommends openssh-client
- install -v -m 0700 -d ~/.ssh