[gnome-build-meta/s3-extreme-makeover: 3/4] s3: create a text file with the path to latest iso and disk image
- From: Abderrahim Kitouni <akitouni src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-build-meta/s3-extreme-makeover: 3/4] s3: create a text file with the path to latest iso and disk image
- Date: Thu, 29 Oct 2020 16:21:34 +0000 (UTC)
commit b1c6f32cd89d6c42184b797632b3040c5063889a
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Wed Oct 28 16:43:21 2020 +0100
s3: create a text file with the path to latest iso and disk image
As we plan to put a caching proxy in front of S3, objects need to have
unique names, otherwise we will serve stale files. The proxy will
resolve the path using mentioned files and use that instead.
.gitlab-ci.yml | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3b1c2907..444e7cf4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -309,13 +309,11 @@ s3-image-static:
script:
- |
# Assume that the s3-image job has succeed and copy the img form the s3 uri
- aws s3 cp --acl public-read --expires $(date -I --date="4 weeks") \
- s3://gnome-build-meta/$CI_PIPELINE_ID/gnome_os_installer.iso \
- s3://gnome-build-meta/latest/gnome_os_installer.iso
+ echo nightly/$CI_PIPELINE_ID/gnome_os_installer.iso > image/latest-iso
+ echo nightly/$CI_PIPELINE_ID/disk.img.xz > image/latest-disk
- |
- aws s3 cp --acl public-read --expires $(date -I --date="4 weeks") \
- s3://gnome-build-meta/$CI_PIPELINE_ID/disk.img.xz \
- s3://gnome-build-meta/latest/disk.img.xz
+ aws s3 cp image/latest-iso s3://gnome-build-meta/nightly/latest-iso
+ aws s3 cp image/latest-disk s3://gnome-build-meta/nightly/latest-disk
- aws s3 ls --recursive --human-readable s3://gnome-build-meta/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]