From 4f17d3f248cd87396d2afb0348b388627a602eb3 Mon Sep 17 00:00:00 2001 From: Sheogorath <sheogorath@shivering-isles.com> Date: Sat, 22 Oct 2022 01:25:17 +0200 Subject: [PATCH] ci(gitlab-ci): Run mirror on generic runner --- .gitlab-ci.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index de6b36b..ad9b7b2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,11 +3,20 @@ stages: .mirror-template: stage: mirror + image: quay.io/sheogorath/build-ah-engine:latest + before_script: + - 'command -v ssh-agent >/dev/null || ( dnf install -y openssh-clients )' + - eval $(ssh-agent -s) + - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - + - mkdir -p ~/.ssh + - chmod 700 ~/.ssh + - echo "$SSH_KNOWN_HOSTS" >> ~/.ssh/known_hosts + - chmod 644 ~/.ssh/known_hosts only: variables: - $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH tags: - - mirror + - hetzner general: extends: .mirror-template -- GitLab