File tree Expand file tree Collapse file tree 1 file changed +28
-8
lines changed Expand file tree Collapse file tree 1 file changed +28
-8
lines changed Original file line number Diff line number Diff line change 11# Code generated by gitStream - DO NOT EDIT
2+ variables :
3+ DOCKER_DRIVER : overlay2
4+ DOCKER_HOST : tcp://docker:2375
5+ DOCKER_TLS_CERTDIR : " "
6+
7+ stages :
8+ - gitstream-main
9+
10+ image : docker:latest
11+
12+ services :
13+ - name : docker:dind
14+
15+ before_script :
16+ - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
17+
218gitstream-job :
319 stage : gitstream-main
4- image : gitstream/rules-engine:latest
520 only :
621 variables :
722 - $GITSTREAM_MAIN_JOB
823 except :
924 variables :
1025 - $GITSTREAM_BLOCK_MERGE
1126 script :
12- - apk update && apk add git
13- - mkdir /code
14- - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}${repoUrl} /code/repo
15- - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}${cmUrl} /code/cm
16- - cd /code && cd repo && git fetch --all && git checkout $base_ref && git pull && ls && git checkout $head_ref && git pull && ls
27+ - apk update && apk add git && apk add docker
28+ - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}${repoUrl} gitstream/repo
29+ - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}${cmUrl} gitstream/cm
30+ - cd gitstream && cd repo && git fetch --all && git checkout $base_ref && git pull && ls && git checkout $head_ref && git pull && ls
31+ - docker pull gitstream/rules-engine:latest
1732 - |
18- HEAD_REF=$head_ref BASE_REF=$base_ref CLIENT_PAYLOAD="$client_payload" RULES_RESOLVER_URL=$resolver_url \
19- RULES_RESOLVER_TOKEN=$resolver_token DEBUG_MODE=true npm run start
33+ docker run -v $CI_PROJECT_DIR/gitstream:/code \
34+ -e HEAD_REF=$head_ref \
35+ -e BASE_REF=$base_ref \
36+ -e CLIENT_PAYLOAD="$client_payload" \
37+ -e RULES_RESOLVER_URL=$resolver_url \
38+ -e RULES_RESOLVER_TOKEN=$resolver_token \
39+ -e DEBUG_MODE=true gitstream/rules-engine:latest
You can’t perform that action at this time.
0 commit comments