From 1c1e38e2f7ea2bad813c424df05b0f6e6761f138 Mon Sep 17 00:00:00 2001 From: wucke13 Date: Fri, 30 Jun 2023 22:44:58 +0200 Subject: [PATCH] add .gitlab-ci.yml This gitlab-ci.yml solely is there to enable mirroring to https://gitlab.com/rosenpass/rosenpass --- .gitlab-ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..6f071aa --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,17 @@ +# TODO use CI_JOB_TOKEN once https://gitlab.com/groups/gitlab-org/-/epics/6310 is fixed +pull-from-gh: + only: ["schedules"] + variables: + REMOTE: "https://github.com/rosenpass/rosenpass.git" + LOCAL: " git@gitlab.com:rosenpass/rosenpass.git" + GIT_STRATEGY: none + before_script: + - mkdir ~/.ssh/ + - echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts + - echo "$REPO_SSH_KEY" > ~/.ssh/id_ed25519 + - chmod 600 --recursive ~/.ssh/ + - git config --global user.email "ci@gitlab.com" + - git config --global user.name "CI" + script: + - git clone --mirror $REMOTE rosenpass + - cd rosenpass && git push --mirror $LOCAL