From fc0cef46c2e0f2af6b30bd125c82125f6eee5581 Mon Sep 17 00:00:00 2001
From: Josh Morgenstern <josh@morgenstern.dev>
Date: Tue, 18 May 2021 00:19:53 +0200
Subject: [PATCH] [#25] another aproach at fixing permissions

---
 .gitlab-ci.yml | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0a246fc1..e17e93fe 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -47,9 +47,10 @@ deploy_doc_develop:
     - webserver
   variables:
     GIT_STRATEGY: none
+  pre-script:
+    - usermod -a -G www-data gitlab-runner
   script:
-    - sudo mv doc/html /html
-    - chown 33:33 /html -R
+    - mv doc/html /html
 
 deploy_doc_branch:
   except:
@@ -63,7 +64,8 @@ deploy_doc_branch:
     - webserver
   variables:
     GIT_STRATEGY: none
+  pre-script:
+    - usermod -a -G www-data gitlab-runner
   script:
-    - sudo mv doc/html /html/branch/$CI_COMMIT_BRANCH
-    - chown 33:33 /html/branch/$CI_COMMIT_BRANCH -R
+    - mv doc/html /html/branch/$CI_COMMIT_BRANCH
 
-- 
GitLab