[gnome-build-meta/jjardon/release_job] .gitlab-ci.yml: Add job to automate release process



commit c3d194ba446e8ec1d602fc637ce3330e0b14ddf9
Author: Javier Jardón <jjardon gnome org>
Date:   Sat Sep 15 21:23:32 2018 +0100

    .gitlab-ci.yml: Add job to automate release process

 .gitlab-ci.yml | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 67 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7201d35..a448a71 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -121,3 +121,70 @@ build-gnome-core-arm:
   variables:
     ARCH: arm
   allow_failure: true
+
+
+
+.release-template: &release
+  stage: build
+  dependencies: []
+  variables:
+    GNOME_VERSION: 3.30.0
+  script:
+    - dnf install -y python2-requests python2-ruamel-yaml
+    - sed -i 's/ref-storage:/#ref-storage:/' project.conf
+    - git clone https://gitlab.gnome.org/GNOME/releng.git
+    - releng/tools/smoketesting/convert-to-tarballs.py -v ${GNOME_VERSION} -d .
+    - ${BST} -o arch "${ARCH}" build core.bst
+
+  # Store all the downloaded git and ostree repos in the distributed cache.
+  # This saves us fetching them from the different repos and further afield
+  # on every build.
+  cache:
+    key: bst
+    paths:
+      - "${XDG_CACHE_HOME}/buildstream/sources/"
+  # Store artifacts so we can inspect build failures
+  artifacts:
+    when: always
+    paths:
+      - logs
+      - project.refs
+
+release-gnome-core-x86_64:
+  image: buildstream/buildstream-fedora:master-113-499df6a5
+  <<: *release
+  tags:
+    - do
+  variables:
+    ARCH: x86_64
+  when: manual
+
+release-gnome-core-i386:
+  image: buildstream/buildstream-fedora:master-113-499df6a5
+  <<: *release
+  tags:
+    - do
+  variables:
+    ARCH: i386
+  allow_failure: true
+  when: manual
+
+release-gnome-core-aarch64:
+  image: buildstream/buildstream-fedora:aarch64-master-113-499df6a5
+  <<: *release
+  tags:
+    - aarch64
+  variables:
+    ARCH: aarch64
+  allow_failure: true
+  when: manual
+
+release-gnome-core-arm:
+  image: buildstream/buildstream-fedora:aarch64-master-113-499df6a5
+  <<: *release
+  tags:
+    - armhf
+  variables:
+    ARCH: arm
+  allow_failure: true
+  when: manual


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]