Loading .gitlab-ci.yml +28 −11 Original line number Diff line number Diff line stages: - auto-merge-main - update-from-upstream include: - project: 'e/templates' ref: master file: '/gitlab-ci/.gitlab-ci-auto-merge-main.yml' - project: 'e/templates' ref: master file: '/gitlab-ci/.gitlab-ci-import-updates-from-upstream.yml' variables: CI_PROJECT_SSH_URL: git@gitlab.e.foundation:$CI_PROJECT_PATH update-from-upstream: image: registry.gitlab.e.foundation/e/tools/docker-tools:latest rules: - if: '$CI_COMMIT_BRANCH == "2464-a14-naburecovery"' variables: GIT_STRATEGY: none before_script: - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' - eval $(ssh-agent -s) - echo "${SSH_E_ROBOT_PRIVATE_KEY}" | tr -d '\r' | ssh-add - > /dev/null - mkdir -p ~/.ssh - chmod 700 ~/.ssh - echo "${SSH_KNOWN_HOSTS}" > /root/.ssh/known_hosts - echo "${SSH_KNOWN_HOSTS}" - chmod 644 ~/.ssh/known_hosts - git config --global user.email $GITLAB_USER_EMAIL - git config --global user.name "$GITLAB_USER_NAME" - cd $CI_BUILD_DIR - rm -rf $CI_PROJECT_DIR - git clone $CI_PROJECT_SSH_URL $CI_PROJECT_DIR - cd $CI_PROJECT_DIR script: - git fetch origin - git checkout 2464-a14-naburecovery - git merge origin/a14 - git push Loading
.gitlab-ci.yml +28 −11 Original line number Diff line number Diff line stages: - auto-merge-main - update-from-upstream include: - project: 'e/templates' ref: master file: '/gitlab-ci/.gitlab-ci-auto-merge-main.yml' - project: 'e/templates' ref: master file: '/gitlab-ci/.gitlab-ci-import-updates-from-upstream.yml' variables: CI_PROJECT_SSH_URL: git@gitlab.e.foundation:$CI_PROJECT_PATH update-from-upstream: image: registry.gitlab.e.foundation/e/tools/docker-tools:latest rules: - if: '$CI_COMMIT_BRANCH == "2464-a14-naburecovery"' variables: GIT_STRATEGY: none before_script: - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' - eval $(ssh-agent -s) - echo "${SSH_E_ROBOT_PRIVATE_KEY}" | tr -d '\r' | ssh-add - > /dev/null - mkdir -p ~/.ssh - chmod 700 ~/.ssh - echo "${SSH_KNOWN_HOSTS}" > /root/.ssh/known_hosts - echo "${SSH_KNOWN_HOSTS}" - chmod 644 ~/.ssh/known_hosts - git config --global user.email $GITLAB_USER_EMAIL - git config --global user.name "$GITLAB_USER_NAME" - cd $CI_BUILD_DIR - rm -rf $CI_PROJECT_DIR - git clone $CI_PROJECT_SSH_URL $CI_PROJECT_DIR - cd $CI_PROJECT_DIR script: - git fetch origin - git checkout 2464-a14-naburecovery - git merge origin/a14 - git push