Update .gitlab-ci.yml file

try to overwrite mirrors file
This commit is contained in:
Alam Ed Arias 2023-10-12 02:15:47 +00:00
parent 27776173ca
commit 58a10836f0

View file

@ -45,9 +45,7 @@ build-native: # This job runs in the build stage, which runs first.
- "bin/*"
name: "Debian native"
before_script:
- ls --human-readable --all -l /etc/apt/sources.list*
- rem sed --expression="s/deb.debian.org/mirrors.digitalocean.com/g" /etc/apt/sources.list > /etc/apt/sources.list.d/debian.list
- rem rm --force /etc/apt/sources.list
- if [ $DigitalOceanDebianMirror == "1" ]; then echo http://mirrors.digitalocean.com/debian | tee /etc/apt/mirrors/debian.list; fi
- apt-get update
- export APT_CACHE_DIR=`pwd`/apt-cache
- mkdir --parents --verbose $APT_CACHE_DIR/partial/