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
0360131b
Commit
0360131b
authored
Sep 16, 2019
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the QA image names in QA CI jobs
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
e684417f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
9 deletions
+14
-9
.gitlab/ci/review.gitlab-ci.yml
.gitlab/ci/review.gitlab-ci.yml
+8
-3
scripts/review_apps/review-apps.sh
scripts/review_apps/review-apps.sh
+6
-6
No files found.
.gitlab/ci/review.gitlab-ci.yml
View file @
0360131b
...
@@ -34,8 +34,7 @@
...
@@ -34,8 +34,7 @@
variables
:
variables
:
DOCKER_DRIVER
:
overlay2
DOCKER_DRIVER
:
overlay2
DOCKER_HOST
:
tcp://docker:2375
DOCKER_HOST
:
tcp://docker:2375
LATEST_QA_IMAGE
:
"
gitlab/${CI_PROJECT_NAME}-qa:nightly"
GITLAB_EDITION
:
"
ce"
QA_IMAGE
:
"
${CI_REGISTRY}/${CI_PROJECT_PATH}/gitlab/${CI_PROJECT_NAME}-qa:${CI_COMMIT_REF_SLUG}"
build-qa-image
:
build-qa-image
:
extends
:
extends
:
...
@@ -47,7 +46,9 @@ build-qa-image:
...
@@ -47,7 +46,9 @@ build-qa-image:
-
branches@gitlab-org/gitlab
-
branches@gitlab-org/gitlab
stage
:
test
stage
:
test
script
:
script
:
-
time docker build --cache-from ${LATEST_QA_IMAGE} --tag ${QA_IMAGE} --file ./qa/Dockerfile ./
-
'
[[
!
-d
"ee/"
]]
||
export
GITLAB_EDITION="ee"'
-
export QA_IMAGE="${CI_REGISTRY}/${CI_PROJECT_PATH}/gitlab/gitlab-${GITLAB_EDITION}-qa:${CI_COMMIT_REF_SLUG}"
-
time docker build --cache-from gitlab/gitlab-${GITLAB_EDITION}-qa:nightly --tag ${QA_IMAGE} --file ./qa/Dockerfile ./
-
echo "${CI_JOB_TOKEN}" | docker login --username gitlab-ci-token --password-stdin ${CI_REGISTRY}
-
echo "${CI_JOB_TOKEN}" | docker login --username gitlab-ci-token --password-stdin ${CI_REGISTRY}
-
time docker push ${QA_IMAGE}
-
time docker push ${QA_IMAGE}
...
@@ -82,11 +83,13 @@ schedule:review-build-cng:
...
@@ -82,11 +83,13 @@ schedule:review-build-cng:
HOST_SUFFIX
:
"
${CI_ENVIRONMENT_SLUG}"
HOST_SUFFIX
:
"
${CI_ENVIRONMENT_SLUG}"
DOMAIN
:
"
-${CI_ENVIRONMENT_SLUG}.${REVIEW_APPS_DOMAIN}"
DOMAIN
:
"
-${CI_ENVIRONMENT_SLUG}.${REVIEW_APPS_DOMAIN}"
GITLAB_HELM_CHART_REF
:
"
master"
GITLAB_HELM_CHART_REF
:
"
master"
GITLAB_EDITION
:
"
ce"
environment
:
environment
:
name
:
review/${CI_COMMIT_REF_NAME}
name
:
review/${CI_COMMIT_REF_NAME}
url
:
https://gitlab-${CI_ENVIRONMENT_SLUG}.${REVIEW_APPS_DOMAIN}
url
:
https://gitlab-${CI_ENVIRONMENT_SLUG}.${REVIEW_APPS_DOMAIN}
on_stop
:
review-stop
on_stop
:
review-stop
before_script
:
before_script
:
-
'
[[
!
-d
"ee/"
]]
||
export
GITLAB_EDITION="ee"'
-
export GITLAB_SHELL_VERSION=$(<GITLAB_SHELL_VERSION)
-
export GITLAB_SHELL_VERSION=$(<GITLAB_SHELL_VERSION)
-
export GITALY_VERSION=$(<GITALY_SERVER_VERSION)
-
export GITALY_VERSION=$(<GITALY_SERVER_VERSION)
-
export GITLAB_WORKHORSE_VERSION=$(<GITLAB_WORKHORSE_VERSION)
-
export GITLAB_WORKHORSE_VERSION=$(<GITLAB_WORKHORSE_VERSION)
...
@@ -169,6 +172,8 @@ review-cleanup-failed-deployment:
...
@@ -169,6 +172,8 @@ review-cleanup-failed-deployment:
expire_in
:
7 days
expire_in
:
7 days
when
:
always
when
:
always
before_script
:
before_script
:
-
'
[[
!
-d
"ee/"
]]
||
export
GITLAB_EDITION="ee"'
-
export QA_IMAGE="${CI_REGISTRY}/${CI_PROJECT_PATH}/gitlab/gitlab-${GITLAB_EDITION}-qa:${CI_COMMIT_REF_SLUG}"
-
export CI_ENVIRONMENT_URL="$(cat review_app_url.txt)"
-
export CI_ENVIRONMENT_URL="$(cat review_app_url.txt)"
-
echo "${CI_ENVIRONMENT_URL}"
-
echo "${CI_ENVIRONMENT_URL}"
-
echo "${QA_IMAGE}"
-
echo "${QA_IMAGE}"
...
...
scripts/review_apps/review-apps.sh
View file @
0360131b
...
@@ -197,17 +197,17 @@ function download_chart() {
...
@@ -197,17 +197,17 @@ function download_chart() {
function
deploy
()
{
function
deploy
()
{
local
name
=
"
$CI_ENVIRONMENT_SLUG
"
local
name
=
"
$CI_ENVIRONMENT_SLUG
"
local
edition
=
"
${
GITLAB_EDITION
-ce
}
"
echoinfo
"Deploying
${
name
}
..."
true
echoinfo
"Deploying
${
name
}
..."
true
IMAGE_REPOSITORY
=
"registry.gitlab.com/gitlab-org/build/cng-mirror"
IMAGE_REPOSITORY
=
"registry.gitlab.com/gitlab-org/build/cng-mirror"
IMAGE_VERSION
=
"
${
CI_PROJECT_NAME
#gitlab-
}
"
gitlab_migrations_image_repository
=
"
${
IMAGE_REPOSITORY
}
/gitlab-rails-
${
edition
}
"
gitlab_migrations_image_repository
=
"
${
IMAGE_REPOSITORY
}
/gitlab-rails-
${
IMAGE_VERSION
}
"
gitlab_sidekiq_image_repository
=
"
${
IMAGE_REPOSITORY
}
/gitlab-sidekiq-
${
edition
}
"
gitlab_sidekiq_image_repository
=
"
${
IMAGE_REPOSITORY
}
/gitlab-sidekiq-
${
IMAGE_VERSION
}
"
gitlab_unicorn_image_repository
=
"
${
IMAGE_REPOSITORY
}
/gitlab-unicorn-
${
edition
}
"
gitlab_unicorn_image_repository
=
"
${
IMAGE_REPOSITORY
}
/gitlab-unicorn-
${
IMAGE_VERSION
}
"
gitlab_task_runner_image_repository
=
"
${
IMAGE_REPOSITORY
}
/gitlab-task-runner-
${
edition
}
"
gitlab_task_runner_image_repository
=
"
${
IMAGE_REPOSITORY
}
/gitlab-task-runner-
${
IMAGE_VERSION
}
"
gitlab_gitaly_image_repository
=
"
${
IMAGE_REPOSITORY
}
/gitaly"
gitlab_gitaly_image_repository
=
"
${
IMAGE_REPOSITORY
}
/gitaly"
gitlab_shell_image_repository
=
"
${
IMAGE_REPOSITORY
}
/gitlab-shell"
gitlab_shell_image_repository
=
"
${
IMAGE_REPOSITORY
}
/gitlab-shell"
gitlab_workhorse_image_repository
=
"
${
IMAGE_REPOSITORY
}
/gitlab-workhorse-
${
IMAGE_VERSION
}
"
gitlab_workhorse_image_repository
=
"
${
IMAGE_REPOSITORY
}
/gitlab-workhorse-
${
edition
}
"
create_application_secret
create_application_secret
...
...
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