From 5802122a62dfacbc54db4451069d1ce70fe1ba9a Mon Sep 17 00:00:00 2001 From: Giovanni La Mura <giovanni.lamura@inaf.it> Date: Sun, 24 Dec 2023 18:27:53 +0100 Subject: [PATCH] Use debian-slim based image for pipeline runner --- .gitlab-ci.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3c02238a..5b393dfb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,7 @@ # CI pipeline configuration default: - image: gmulas/np-tmcode + image: debian:bookworm-slim # Switch from branch pipelines to merge request pipelines when a merge request is created workflow: @@ -34,14 +34,20 @@ building_stage: - ".git*" - ".git/**/*" expire_in: 2 hours + tags: + - saas-linux-small-amd64 script: # bash commands to be executed - pwd - hostname - echo $CI_COMMIT_SHA - echo $CI_COMMIT_BRANCH + - echo "Updating system" + - apt update + - echo "Installing dependencies" + - apt install -y g++ gfortran make - cd src - - echo "Running make (ONLY C++ CODE)" + - echo "Running make" - make running_stage: @@ -58,12 +64,18 @@ running_stage: - ".git*" - ".git/**/*" expire_in: 2 hours + tags: + - saas-linux-small-amd64 script: # bash commands to be executed - pwd - hostname - echo $CI_COMMIT_SHA - echo $CI_COMMIT_BRANCH + - echo "Updating system" + - apt update + - echo "Installing dependencies" + - apt install -y g++ gfortran gdb - cd build/sphere - echo "Running np_sphere" - chmod +x np_sphere @@ -86,12 +98,18 @@ testing_stage: - ".git*" - ".git/**/*" expire_in: 2 hours + tags: + - saas-linux-small-amd64 script: # bash commands to be executed - pwd - hostname - echo $CI_COMMIT_SHA - echo $CI_COMMIT_BRANCH + - echo "Updating system" + - apt update + - echo "Installing dependencies ..." + - apt install -y python3 - cd build/sphere - export FFILE=../../test_data/sphere/OSPH - echo "Comparing output of SPHERE" -- GitLab