[gnome-build-meta/jjardon/gnome_3_37_92: 35/44] ci: push the iso installer to s3 as well




commit 32b24e54262b98a4ac0aa701533a332a9c8a065a
Author: Jordan Petridis <jordan centricular com>
Date:   Wed Sep 2 18:23:58 2020 +0300

    ci: push the iso installer to s3 as well

 .gitlab-ci.yml | 29 ++++++++++++++++-------------
 1 file changed, 16 insertions(+), 13 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index aaeee136..19789982 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -268,19 +268,22 @@ s3-image:
   stage: deploy
   dependencies: [track]
   script:
-  - ${BST_NO_PUSH} --max-jobs $(( $(nproc) / 4 )) -o arch "${ARCH}" build vm/image.bst
-  - ${BST} -o arch "${ARCH}" checkout --hardlinks vm/image.bst image
-
-  - |
-    if [ -n "$CI_COMMIT_TAG" ]; then
-        aws s3 cp --acl public-read --expires $(date -I --date="6 weeks") image/disk.img.xz \
-            s3://gnome-build-meta/$CI_COMMIT_TAG/disk.img.xz
-    else
-        aws s3 cp --acl public-read --expires $(date -I --date="1 week") image/disk.img.xz \
-            s3://gnome-build-meta/$CI_PIPELINE_ID/disk.img.xz
-    fi
-
-  - aws s3 ls --recursive --human-readable s3://gnome-build-meta/
+    - ${BST_NO_PUSH} --max-jobs $(( $(nproc) / 4 )) -o arch "${ARCH}" build vm/image.bst iso/image.bst
+    - ${BST} -o arch "${ARCH}" checkout --hardlinks vm/image.bst image
+    - ${BST} -o arch "${ARCH}" checkout --hardlinks iso/image.bst iso
+
+    - |
+      if [ -n "$CI_COMMIT_TAG" ]; then
+          aws s3 cp --acl public-read --expires $(date -I --date="6 weeks") iso/installer.iso \
+              s3://gnome-build-meta/$CI_COMMIT_TAG/installer.iso
+      else
+          aws s3 cp --acl public-read --expires $(date -I --date="1 week") image/disk.img.xz \
+              s3://gnome-build-meta/$CI_PIPELINE_ID/disk.img.xz
+          aws s3 cp --acl public-read --expires $(date -I --date="1 week") iso/installer.iso \
+              s3://gnome-build-meta/$CI_PIPELINE_ID/installer.iso
+      fi
+
+    - aws s3 ls --recursive --human-readable s3://gnome-build-meta/
 
   rules:
   - if: $EMERGENCY || $BST_TRACK_TAGS != "False"


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