Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
7e1f6718
Commit
7e1f6718
authored
Dec 27, 2019
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clone instead of wget, due to private projects
And CI_JOB_TOKEN cannot access them easily
parent
0d01198a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
14 deletions
+12
-14
.gitlab/ci/docs.gitlab-ci.yml
.gitlab/ci/docs.gitlab-ci.yml
+6
-7
.gitlab/ci/review.gitlab-ci.yml
.gitlab/ci/review.gitlab-ci.yml
+6
-7
No files found.
.gitlab/ci/docs.gitlab-ci.yml
View file @
7e1f6718
...
@@ -11,7 +11,10 @@
...
@@ -11,7 +11,10 @@
stage
:
review
stage
:
review
dependencies
:
[]
dependencies
:
[]
variables
:
variables
:
GIT_STRATEGY
:
none
# We're cloning the repo instead of downloading the script for now
# because some repos are private and CI_JOB_TOKEN cannot access files.
# See https://gitlab.com/gitlab-org/gitlab/issues/191273
GIT_DEPTH
:
1
environment
:
environment
:
name
:
review-docs/$DOCS_GITLAB_REPO_SUFFIX-$CI_MERGE_REQUEST_IID
name
:
review-docs/$DOCS_GITLAB_REPO_SUFFIX-$CI_MERGE_REQUEST_IID
# DOCS_REVIEW_APPS_DOMAIN and DOCS_GITLAB_REPO_SUFFIX are CI variables
# DOCS_REVIEW_APPS_DOMAIN and DOCS_GITLAB_REPO_SUFFIX are CI variables
...
@@ -19,11 +22,7 @@
...
@@ -19,11 +22,7 @@
url
:
http://docs-preview-$DOCS_GITLAB_REPO_SUFFIX-$CI_MERGE_REQUEST_IID.$DOCS_REVIEW_APPS_DOMAIN/$DOCS_GITLAB_REPO_SUFFIX
url
:
http://docs-preview-$DOCS_GITLAB_REPO_SUFFIX-$CI_MERGE_REQUEST_IID.$DOCS_REVIEW_APPS_DOMAIN/$DOCS_GITLAB_REPO_SUFFIX
on_stop
:
review-docs-cleanup
on_stop
:
review-docs-cleanup
before_script
:
before_script
:
# We don't clone the repo by using GIT_STRATEGY: none and only download the
# single script we need here so it's much faster than cloning.
-
apk add --update openssl
-
apk add --update openssl
-
wget $CI_PROJECT_URL/raw/$CI_COMMIT_SHA/scripts/trigger-build-docs
-
chmod 755 trigger-build-docs
-
gem install httparty --no-document --version 0.17.3
-
gem install httparty --no-document --version 0.17.3
-
gem install gitlab --no-document --version 4.13.0
-
gem install gitlab --no-document --version 4.13.0
...
@@ -32,7 +31,7 @@
...
@@ -32,7 +31,7 @@
review-docs-deploy
:
review-docs-deploy
:
extends
:
.review-docs
extends
:
.review-docs
script
:
script
:
-
./trigger-build-docs deploy
-
./
scripts/
trigger-build-docs deploy
when
:
manual
when
:
manual
# Cleanup remote environment of gitlab-docs
# Cleanup remote environment of gitlab-docs
...
@@ -42,7 +41,7 @@ review-docs-cleanup:
...
@@ -42,7 +41,7 @@ review-docs-cleanup:
name
:
review-docs/$DOCS_GITLAB_REPO_SUFFIX-$CI_MERGE_REQUEST_IID
name
:
review-docs/$DOCS_GITLAB_REPO_SUFFIX-$CI_MERGE_REQUEST_IID
action
:
stop
action
:
stop
script
:
script
:
-
./trigger-build-docs cleanup
-
./
scripts/
trigger-build-docs cleanup
when
:
manual
when
:
manual
docs lint
:
docs lint
:
...
...
.gitlab/ci/review.gitlab-ci.yml
View file @
7e1f6718
...
@@ -171,15 +171,14 @@ schedule:review-deploy:
...
@@ -171,15 +171,14 @@ schedule:review-deploy:
environment
:
environment
:
action
:
stop
action
:
stop
variables
:
variables
:
GIT_STRATEGY
:
none
# We're cloning the repo instead of downloading the script for now
# because some repos are private and CI_JOB_TOKEN cannot access files.
# See https://gitlab.com/gitlab-org/gitlab/issues/191273
GIT_DEPTH
:
1
before_script
:
before_script
:
# We don't clone the repo by using GIT_STRATEGY: none and only download the
# single script we need here so it's much faster than cloning.
-
apk add --update openssl
-
apk add --update openssl
-
wget $CI_PROJECT_URL/raw/$CI_COMMIT_SHA/scripts/review_apps/review-apps.sh
-
source ./scripts/utils.sh
-
wget $CI_PROJECT_URL/raw/$CI_COMMIT_SHA/scripts/utils.sh
-
source ./scripts/review_apps/review-apps.sh
-
source utils.sh
-
source review-apps.sh
review-stop-failed-deployment
:
review-stop-failed-deployment
:
extends
:
.base-review-stop
extends
:
.base-review-stop
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment