stages: - pull default: image: debian pull-gitlab: stage: pull script: - echo "This is redundant" pull-github: stage: pull before_script: - whoami; env - apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* script: - whoami; env - if [ -z "$CI_COMMIT_BRANCH" ]; then echo "Not on a branch" >&2; exit 3; fi - git remote remove github 2>/dev/null || true - git remote add github https://github.com/qurator-spk/dinglehopper.git - git remote -v - git pull github "$CI_COMMIT_BRANCH"