different approach to fetch upstream

This commit is contained in:
Wolfgang Hottgenroth 2021-10-26 14:13:45 +02:00
parent 8acc95e445
commit 3569a44161
2 changed files with 4 additions and 23 deletions

View File

@ -1,25 +1,4 @@
stages:
- prepare
- check
- build
include: include:
- project: dockerized/commons - project: dockerized/commons
ref: master ref: master
file: gitlab-ci-template.yml file: gitlab-ci-template.yml
prepare:
image: registry.hottis.de/dockerized/base-build-env:latest
stage: prepare
tags:
- hottis
- linux
- docker
artifacts:
paths:
- tmp/unbound
script:
- mkdir tmp
- cd tmp
- git clone https://github.com/NLnetLabs/unbound.git

View File

@ -1,6 +1,5 @@
FROM alpine:3.13 AS builder FROM alpine:3.13 AS builder
COPY tmp/unbound/ tmp/unbound
RUN \ RUN \
apk update && \ apk update && \
apk add alpine-sdk && \ apk add alpine-sdk && \
@ -9,7 +8,10 @@ RUN \
apk add openssl-dev && \ apk add openssl-dev && \
apk add expat-dev && \ apk add expat-dev && \
apk add libevent-dev && \ apk add libevent-dev && \
cd tmp/unbound && \ mkdir tmp && \
cd tmp && \
git clone https://github.com/NLnetLabs/unbound.git && \
cd unbound && \
./configure --with-libnghttp2 --with-libevent --prefix /opt/unbound && \ ./configure --with-libnghttp2 --with-libevent --prefix /opt/unbound && \
make && \ make && \
make install make install