[gnome-build-meta/abderrahim/buildmaster] .gitlab-ci.yml: Commit project.refs on a successful build
- From: Abderrahim Kitouni <akitouni src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-build-meta/abderrahim/buildmaster] .gitlab-ci.yml: Commit project.refs on a successful build
- Date: Tue, 4 Aug 2020 07:11:22 +0000 (UTC)
commit cf4a92fb07d13c9798e214ef3aaa49325f630e14
Author: Abderrahim Kitouni <akitouni gnome org>
Date: Fri Jun 12 21:39:55 2020 +0100
.gitlab-ci.yml: Commit project.refs on a successful build
.gitlab-ci.yml | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4b778169..9ffdc4bd 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -247,6 +247,8 @@ track:
retry: 2
# only run on branches targeting master
rules:
+ - exists: [project.refs]
+ when: never
- if: $FLATPAK_BRANCH == 'master' && $CI_MERGE_REQUEST_ID == null
artifacts:
paths:
@@ -432,6 +434,27 @@ ostree-finish-failed:
when: on_failure
<<: *x86_64
+
+buildmaster:
+ <<: *x86_64
+ stage: reports
+ dependencies: [track]
+ script:
+ - git config user.name "GNOME Gitlab CI"
+ - git config user.email ""
+ - git remote set-url --push origin https://akitouni:$AKITOUNI_ACCESS_TOKEN gitlab gnome
org/GNOME/gnome-build-meta.git
+
+ - mv project.refs project.refs.temp
+ - git switch buildmaster
+ - git merge --no-commit origin/master
+ - mv project.refs.temp project.refs
+ - git add -f project.refs
+
+ - git commit -m "Pipeline $CI_PIPELINE_ID"
+ - git push origin buildmaster
+ rules:
+ - if: $AKITOUNI_ACCESS_TOKEN && $CI_COMMIT_REF_NAME == 'master'
+
cve_report:
<<: *x86_64
stage: reports
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]