From: Uladzimir Bely <ubely@ilbers.de>
To: isar-users@googlegroups.com
Subject: [PATCH v2 5/5] gitlab-ci.yml: Add jobs that run with custom docker-isar image
Date: Wed, 22 Mar 2023 13:29:12 +0100 [thread overview]
Message-ID: <20230322122912.5910-6-ubely@ilbers.de> (raw)
In-Reply-To: <20230322122912.5910-1-ubely@ilbers.de>
This adds possibility to select between `kas-isar` image for building
the project and `docker-isar` one.
By default, if variable `IMAGE` is not set in schedule properties, we
continue using `kas-isar`. Specifying `IMAGE = docker-isar` swtiches CI
to `docker-isar` image that has "avocado" and "qemu-system" packages
preinstalled.
Signed-off-by: Uladzimir Bely <ubely@ilbers.de>
---
.gitlab-ci.yml | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5117519a..7e28a234 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -23,9 +23,28 @@ variables:
when: always
expire_in: 1 week
+
+.docker-isar: &docker-isar
+ image: ghcr.io/ilbers/docker-isar:3.2.3
+
+
+.use-default-image:
+ rules:
+ - &use-default-image
+ if: $IMAGE
+ when: never
+
+.use-docker-isar-image:
+ rules:
+ - &use-docker-isar-image
+ if: $IMAGE != 'docker-isar'
+ when: never
+
+
dev-ci:
<<: *common-build
rules:
+ - *use-default-image
- if: $TESTSUITE == 'dev' || $CI_PIPELINE_SOURCE != 'schedule'
script:
- scripts/ci_build.sh -T dev
@@ -33,6 +52,7 @@ dev-ci:
fast-ci:
<<: *common-build
rules:
+ - *use-default-image
- if: $TESTSUITE == 'fast'
script:
- scripts/ci_build.sh -T fast
@@ -40,6 +60,7 @@ fast-ci:
full-ci:
<<: *common-build
rules:
+ - *use-default-image
- if: $TESTSUITE == null && $CI_PIPELINE_SOURCE == 'schedule'
- if: $TESTSUITE == 'full'
script:
@@ -52,3 +73,31 @@ full-ci:
key: "$CI_COMMIT_REF_SLUG"
paths:
- .CI_COMMIT_SHA
+
+
+dev-ci-isar:
+ <<: *docker-isar
+ <<: *common-build
+ rules:
+ - *use-docker-isar-image
+ - if: $TESTSUITE == 'dev'
+ script:
+ - scripts/ci_build.sh -T dev
+
+fast-ci-isar:
+ <<: *docker-isar
+ <<: *common-build
+ rules:
+ - *use-docker-isar-image
+ - if: $TESTSUITE == 'fast'
+ script:
+ - scripts/ci_build.sh -T fast
+
+full-ci-isar:
+ <<: *docker-isar
+ <<: *common-build
+ rules:
+ - *use-docker-isar-image
+ - if: $TESTSUITE == 'full'
+ script:
+ - scripts/ci_build.sh -T full
--
2.20.1
prev parent reply other threads:[~2023-03-22 12:29 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-22 12:29 [PATCH v2 0/5] Use `docker-isar` image for maintainer test jobs Uladzimir Bely
2023-03-22 12:29 ` [PATCH v2 1/5] testsuite: Dockerfile for docker-isar image Uladzimir Bely
2023-03-22 16:22 ` Moessbauer, Felix
2023-03-23 5:24 ` Uladzimir Bely
2023-03-23 5:46 ` Jan Kiszka
2023-03-22 12:29 ` [PATCH v2 2/5] testsuite: Add README for docker-isar Uladzimir Bely
2023-03-22 12:29 ` [PATCH v2 3/5] gitlab-ci: Switch to `rules` instead of `except` and `only` Uladzimir Bely
2023-03-22 12:29 ` [PATCH v2 4/5] gitlab-ci.yml: Run 'fast' and 'full' only if specific variable set Uladzimir Bely
2023-03-22 12:29 ` Uladzimir Bely [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230322122912.5910-6-ubely@ilbers.de \
--to=ubely@ilbers.de \
--cc=isar-users@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox