Skip to content

Commit 1d313bf

Browse files
PavelLinearBBenLloydPearson
authored andcommitted
Simplified GitLab workflow
1 parent e674bda commit 1d313bf

File tree

1 file changed

+8
-20
lines changed

1 file changed

+8
-20
lines changed

docs/downloads/gitlab-ci.yml

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,19 @@
11
# Code generated by gitStream - DO NOT EDIT
2-
stages:
3-
- gitstream-main
4-
image: docker:latest
5-
services:
6-
- docker:dind
7-
before_script:
8-
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
9-
102
gitstream-job:
113
stage: gitstream-main
4+
image: gitstream/rules-engine:latest
125
only:
136
variables:
147
- $GITSTREAM_MAIN_JOB
158
except:
169
variables:
1710
- $GITSTREAM_BLOCK_MERGE
1811
script:
19-
- apk update && apk add git && apk add docker
20-
- git clone https://gitlab-ci-token:${CI_JOB_TOKEN}${repoUrl} gitstream/repo
21-
- git clone https://gitlab-ci-token:${CI_JOB_TOKEN}${cmUrl} gitstream/cm
22-
- cd gitstream && cd repo && git fetch --all && git checkout $base_ref && git pull && ls && git checkout $head_ref && git pull && ls
23-
- docker pull gitstream/rules-engine:latest
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
2417
- |
25-
docker run -v $CI_PROJECT_DIR/gitstream:/code \
26-
-e HEAD_REF=$head_ref \
27-
-e BASE_REF=$base_ref \
28-
-e CLIENT_PAYLOAD="$client_payload" \
29-
-e RULES_RESOLVER_URL=$resolver_url \
30-
-e RULES_RESOLVER_TOKEN=$resolver_token \
31-
-e DEBUG_MODE=true gitstream/rules-engine:latest
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

0 commit comments

Comments
 (0)