From 47be84a0173fcad9bf74cbdad4c91c671ec35871 Mon Sep 17 00:00:00 2001
From: Daniel Kouril <kouril@ics.muni.cz>
Date: Thu, 16 Mar 2023 11:22:39 +0100
Subject: [PATCH] Build the creds converter

---
 .gitlab-ci.yml | 39 +++++++++++++++++++--------------------
 1 file changed, 19 insertions(+), 20 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5c5be7d..7245ca7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,28 +1,27 @@
-image: debian:bullseye
-
-# Is performed before the scripts in the stages step
-before_script:  
-  - source /etc/profile
-
-variables:
-  DEBEMAIL: "Daniel Kouril <kouril@ics.muni.cz>"
-
-# Defines stages which are to be executed
 stages:  
   - build
 
-# Stage "build"
-run-build:  
+.build:
+  tags:
+    - docker
   stage: build
   script:
-    - ./make.sh
-
-  # This stage is only executed if commited to master
-  only:
-    - master
-
-  # The files which are to be made available in GitLab
+    - make
   artifacts:
     paths:
-      - build/*
+      - creds2cc
+    name: creds2cc_$CUST_OS_NAME-$CUST_OS_VERSION
+    expire_in: 1 hour
+
+.build debian:
+  image: $CUST_OS_NAME:$CUST_OS_VERSION
+  before_script:
+    - apt update
+    - DEBIAN_FRONTEND=noninteractive apt install -y build-essential heimdal-dev
+  extends: .build unix
 
+.build debian 11:
+  variables:
+    CUST_OS_NAME: debian 
+    CUST_OS_VERSION: "11"
+  extends: .build debian
-- 
GitLab