[gnome-build-meta] .gitlab-ci/flat-manager.yml: copy before_script from .gitlab-ci.yml
- From: Abderrahim Kitouni <akitouni src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-build-meta] .gitlab-ci/flat-manager.yml: copy before_script from .gitlab-ci.yml
- Date: Wed, 12 Aug 2020 19:35:39 +0000 (UTC)
commit 22ace229a68d2d60ea9e18a55878d414a5553509
Author: Abderrahim Kitouni <akitouni gnome org>
Date: Wed Aug 12 20:26:56 2020 +0100
.gitlab-ci/flat-manager.yml: copy before_script from .gitlab-ci.yml
.gitlab-ci/flat-manager.yml | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
---
diff --git a/.gitlab-ci/flat-manager.yml b/.gitlab-ci/flat-manager.yml
index 16301f71..db98b809 100644
--- a/.gitlab-ci/flat-manager.yml
+++ b/.gitlab-ci/flat-manager.yml
@@ -6,6 +6,31 @@ stages:
- deploy
- finish
+default:
+ before_script:
+ # Ensure the log directory exists
+ - mkdir -p logs
+
+ # Setup certificate for pushing to the cache
+ - |
+ if [ -n "$GITLAB_CAS_PUSH_CERT" ]; then
+ echo "$GITLAB_CAS_PUSH_CERT" > client.crt
+ echo "$GITLAB_CAS_PUSH_KEY" > client.key
+ fi
+
+ cat >> build.conf << EOF
+
+ projects:
+ gnome:
+ artifacts:
+ - url: https://m1-xlarge-x86.gnome.org:11002
+ client-key: client.key
+ client-cert: client.crt
+ push: true
+
+ sourcedir: /cache/buildstream/sources
+ EOF
+
.flatmgr-template:
stage: deploy
dependencies: [flatmgr-prepare]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]