Skip to content
Snippets Groups Projects
Commit 5ee9ef90 authored by Pavel Vondruska's avatar Pavel Vondruska
Browse files

initial

parents
No related branches found
No related tags found
No related merge requests found
Pipeline #984 passed
build:bullseye:
image: debian:bullseye
script:
- ./make.sh
artifacts:
paths:
- build/*
build:buster:
image: debian:buster
script:
- ./make.sh
artifacts:
paths:
- build/*
build:stretch:
image: debian:stretch
script:
- ./make.sh
artifacts:
paths:
- build/*
make.sh 0 → 100755
#!/bin/bash
# Prikaz pro stazeni baliku
# wget -O build.zip "https://gitlab.cesnet.cz/api/v4/projects/587/jobs/artifacts/master/download?job=build:bullseye"
set -x
# Nacteni promennych o bezicim systemu vcetne verzi
. /etc/os-release
# Od Debian 11 Bullseye ma debian-security trochu jinou cestu, abychom mohli pouzit heredoc, rozskocime si pres funkci
function get_debian_security() {
if [ "${VERSION_ID}" -lt "11" ]; then echo "${VERSION_CODENAME}/updates"; else echo "${VERSION_CODENAME}-security"; fi
}
# Vygenerovani sources.list podle verze Debianu
cat > /etc/apt/sources.list << EOSOURCES
deb http://ftp.zcu.cz/pub/linux/debian ${VERSION_CODENAME} main contrib non-free
deb http://ftp.zcu.cz/pub/linux/debian ${VERSION_CODENAME}-updates main contrib non-free
deb http://ftp.zcu.cz/pub/linux/debian-security $(get_debian_security) main contrib non-free
deb-src http://ftp.zcu.cz/pub/linux/debian ${VERSION_CODENAME} main contrib non-free
deb-src http://ftp.zcu.cz/pub/linux/debian ${VERSION_CODENAME}-updates main contrib non-free
deb-src http://ftp.zcu.cz/pub/linux/debian-security $(get_debian_security) main contrib non-free
EOSOURCES
apt update -qqq
apt install git devscripts build-essential apache2-dev -yqqq
git clone https://github.com/CESNET/mod_ssl_preauth
cd mod_ssl_preauth
dpkg-buildpackage -uc -us -b
cd ..
mkdir build
mv *.deb build/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment