|
|
@ -1,10 +1,20 @@
|
|
|
|
stages:
|
|
|
|
stages:
|
|
|
|
|
|
|
|
- check
|
|
|
|
- pull
|
|
|
|
- pull
|
|
|
|
- push
|
|
|
|
- push
|
|
|
|
|
|
|
|
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
image: debian
|
|
|
|
image: debian
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
check:
|
|
|
|
|
|
|
|
state: check
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
script:
|
|
|
|
|
|
|
|
- whoami; env
|
|
|
|
|
|
|
|
- if [ -z "$CI_COMMIT_BRANCH" ]; then echo "Not on a branch" >&2; exit 3; fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pull-gitlab:
|
|
|
|
pull-gitlab:
|
|
|
|
stage: pull
|
|
|
|
stage: pull
|
|
|
|
script:
|
|
|
|
script:
|
|
|
@ -13,29 +23,25 @@ pull-gitlab:
|
|
|
|
pull-github:
|
|
|
|
pull-github:
|
|
|
|
stage: pull
|
|
|
|
stage: pull
|
|
|
|
before_script:
|
|
|
|
before_script:
|
|
|
|
- whoami; env
|
|
|
|
|
|
|
|
- apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
|
|
|
|
- apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
|
|
|
|
script:
|
|
|
|
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 remove github 2>/dev/null || true
|
|
|
|
- git remote add github https://github.com/qurator-spk/dinglehopper.git
|
|
|
|
- git remote add github https://github.com/qurator-spk/dinglehopper.git
|
|
|
|
- git remote -v
|
|
|
|
- git remote -v
|
|
|
|
|
|
|
|
|
|
|
|
- git pull github "$CI_COMMIT_BRANCH"
|
|
|
|
- git pull github "$CI_COMMIT_BRANCH"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
push-gitlab:
|
|
|
|
push-gitlab:
|
|
|
|
stage: push
|
|
|
|
stage: push
|
|
|
|
before_script:
|
|
|
|
before_script:
|
|
|
|
- apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
|
|
|
|
- apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
|
|
|
|
script:
|
|
|
|
script:
|
|
|
|
- git push origin "$CI_COMMIT_BRANCH"
|
|
|
|
- git push origin "$CI_COMMIT_SHA":"$CI_COMMIT_BRANCH"
|
|
|
|
|
|
|
|
|
|
|
|
push-github:
|
|
|
|
push-github:
|
|
|
|
stage: push
|
|
|
|
stage: push
|
|
|
|
before_script:
|
|
|
|
before_script:
|
|
|
|
- apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
|
|
|
|
- apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
|
|
|
|
script:
|
|
|
|
script:
|
|
|
|
- git push github "$CI_COMMIT_BRANCH"
|
|
|
|
- git push github "$CI_COMMIT_SHA":"$CI_COMMIT_BRANCH"
|
|
|
|