Commit ac9cb550 authored by Booloki's avatar Booloki

Gitlab CI with local repositories mirror

parent 9ff209b3
Pipeline #87 failed with stages
in 1 minute and 59 seconds
......@@ -23,6 +23,8 @@ build:deb-package:
only:
- tags
script:
# Use local repository mirror
- echo -e "deb http://miroir.lan/ubuntu/bionic main multiverse restricted universe\ndeb http://miroir.lan/ubuntu/bionic-updates main multiverse restricted universe" > /etc/apt/sources.list
# Update env
- apt-get update -qq
# Dependencies install
......@@ -67,6 +69,8 @@ build:archlinux-package:
only:
- tags
script:
# Use local repository mirror
- echo 'Server = http://miroir.lan/archlinux/$repo/os/$arch' > /etc/pacman.d/mirrorlist
# Update env
- pacman -Syu --noconfirm -q
# Dependencies install
......@@ -102,6 +106,8 @@ test:deb-install:
variables:
GIT_STRATEGY: none
script:
# Use local repository mirror
- echo -e "deb http://miroir.lan/ubuntu/bionic main multiverse restricted universe\ndeb http://miroir.lan/ubuntu/bionic-updates main multiverse restricted universe" > /etc/apt/sources.list
# Add main repository
- echo "deb [trusted=yes] http://wazzuf-ripper.lokizone.net/ubuntu/ trusty main" > /etc/apt/sources.list.d/wazzuf-ripper.list
# Add testing repository
......@@ -129,6 +135,8 @@ test:archlinux-install:
variables:
GIT_STRATEGY: none
script:
# Use local repository mirror
- echo 'Server = http://miroir.lan/archlinux/$repo/os/$arch' > /etc/pacman.d/mirrorlist
# Add multilib repository
- echo -e "[multilib]\nInclude = /etc/pacman.d/mirrorlist" >> /etc/pacman.conf
# Update env
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment