From cac543c9ba84680c7e09d3cadd921c923e9fbe82 Mon Sep 17 00:00:00 2001
From: Eliot Berriot <contact@eliotberriot.com>
Date: Thu, 28 Jun 2018 16:51:29 +0200
Subject: [PATCH] Fix #332: Ensure 750 permissions on CI artifacts

---
 .gitlab-ci.yml                 | 5 ++++-
 changes/changelog.d/332.bugfix | 1 +
 2 files changed, 5 insertions(+), 1 deletion(-)
 create mode 100644 changes/changelog.d/332.bugfix

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ff6da8ed..3165213e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -184,6 +184,7 @@ build_front:
     # this is to ensure we don't have any errors in the output,
     # cf https://code.eliotberriot.com/funkwhale/funkwhale/issues/169
     - yarn run build | tee /dev/stderr | (! grep -i 'ERROR in')
+    - chmod -R 750 front/dist
   cache:
     key: "$CI_PROJECT_ID__front_dependencies"
     paths:
@@ -248,7 +249,9 @@ build_api:
     name: "api_${CI_COMMIT_REF_NAME}"
     paths:
       - api
-  script: echo Done!
+  script:
+    - chmod -R 750 api
+    - echo Done!
   only:
     - tags@funkwhale/funkwhale
     - master@funkwhale/funkwhale
diff --git a/changes/changelog.d/332.bugfix b/changes/changelog.d/332.bugfix
new file mode 100644
index 00000000..a5d13f01
--- /dev/null
+++ b/changes/changelog.d/332.bugfix
@@ -0,0 +1 @@
+Ensure 750 permissions on CI artifacts (#332)
-- 
GitLab