Skip to content
Snippets Groups Projects
Commit e8f97fd7 authored by Martin Heistermann's avatar Martin Heistermann
Browse files

init

parents
No related branches found
No related tags found
No related merge requests found
Pipeline #9098 passed
/build*/
.template-debian:
image: docker:27.5.0
tags:
- cgg
- linux
- docker-docker
variables:
DEBIAN_RELEASE: "bookworm"
TAG_PREFIX: "x64-"
DOCKERFILE: "Dockerfile"
script:
- TAG="${CI_REGISTRY_IMAGE}:${TAG_PREFIX}${CI_COMMIT_SHA}"
- TAG_LATEST="${CI_REGISTRY_IMAGE}:${TAG_PREFIX}latest"
- echo -n $CI_JOB_TOKEN | docker login -u gitlab-ci-token --password-stdin $CI_REGISTRY
- docker pull "${TAG_LATEST}" || true
- >
docker build
--file ${DOCKERFILE}
--pull
--build-arg DEBIAN_TAG=${DEBIAN_RELEASE}-slim
--build-arg VCS_REF=$CI_COMMIT_SHA
--build-arg VCS_URL=$CI_PROJECT_URL
--cache-from "${TAG_LATEST}"
--tag "${TAG}"
.
- docker push "${TAG}"
- docker tag "${TAG}" "${TAG_LATEST}"
- docker push "${TAG_LATEST}"
after_script:
# Workaround for https://gitlab.com/gitlab-org/gitlab-foss/-/issues/40925
- docker logout ${Env:CI_REGISTRY}
trixie-x64:
extends: .template-debian
variables:
DEBIAN_RELEASE: "trixie"
TAG_PREFIX: "x64-trixie-"
bookworm-x64:
extends: .template-debian
variables:
DEBIAN_RELEASE: "bookworm"
TAG_PREFIX: "x64-bookworm-"
ARG DEBIAN_TAG
FROM docker.io/debian:$DEBIAN_TAG
MAINTAINER Martin Heistermann <martin.heistermann@inf.unibe.ch>
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends \
binutils \
ca-certificates \
clang \
ccache \
cmake \
coinor-libipopt-dev \
curl \
g++ \
git \
libc-dev \
libcgal-dev \
liblapack-dev \
libmetis-dev \
libmumps-seq-dev \
libomp-dev \
libopenblas64-serial-dev \
libsuitesparse-dev \
libtool \
locales \
ninja-build \
pkgconf \
time \
tzdata \
wget
ENV CCACHE_DIR "/cache/ccache"
ARG VCS_URL
ARG VCS_REF
LABEL org.opencontainers.image.source=${VCS_URL} \
org.opencontainers.image.revision=${VCS_REF}
# BuildBox-Windows (experimental)
Use with https://gitlab.inf.unibe.ch/CGG-public/ci-components/debian-linux CI component.
## Components
This project publishes CI components to build cmake based projects.
### debian-bookworm (stable)
### debian-trixie (testing)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment