From e4dd4605d8610a8f88d5ba4d24736cae0616f8a1 Mon Sep 17 00:00:00 2001 From: Sebastian Achilles <s.achilles@fz-juelich.de> Date: Fri, 17 Feb 2023 10:42:03 +0100 Subject: [PATCH] CI: add ACLs and public mirror sync --- .gitlab-ci.yml | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 98536bfb3..89f6bfa88 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -123,3 +123,57 @@ sync_repo_on_HPC: - git pull https://project_2497_bot1:$GITLAB_TOKEN@gitlab.jsc.fz-juelich.de/software-team/easybuild.git only: - '2023' + +update_acls: + stage: deploy + matrix: + - SYSTEM: juwels + - SYSTEM: jureca + - SYSTEM: jusuf + tags: + - jacamar + - ${SYSTEM} + - shell + needs: ['sync_repo_on_HPC'] + script: + - hostname + - ml Stages/2023 + - pushd /p/fastdata/zam/swmanage/EasyBuild/$STAGE/bin + - ./setacls -c ../acls.yml --force -m + only: + - '2023' + changes: + - 'acls.yml' + +push_public_mirror: + stage: deploy + tags: + - jacamar + - juwels + - shell + needs: ['sync_repo_on_HPC'] + script: + - hostname + - ml Stages/2023 + - cd /p/project/cswmanage/easybuilders-JSC/2023 + - git pull + - ./filter.sh + - git add -A + - git commit -a -m "Sync" + - git push https://$GITHUB_USER:$GITHUB_TOKEN@github.com/easybuilders/JSC.git + only: + - '2023' + when: manual + +pull_public_mirror: + stage: deploy + tags: + - jacamar + - juwels + - shell + script: + - hostname + - cd /p/usersoftware/swmanage/user_installations/2023/ + - git pull + only: + - '2023' -- GitLab