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
7f62864f
Commit
7f62864f
authored
Jul 15, 2020
by
Albert Salim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure correct gitaly image tag
parent
a04c8e24
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
scripts/review_apps/review-apps.sh
scripts/review_apps/review-apps.sh
+13
-1
No files found.
scripts/review_apps/review-apps.sh
View file @
7f62864f
...
@@ -291,6 +291,17 @@ function base_config_changed() {
...
@@ -291,6 +291,17 @@ function base_config_changed() {
curl
"
${
CI_API_V4_URL
}
/projects/
${
CI_MERGE_REQUEST_PROJECT_ID
}
/merge_requests/
${
CI_MERGE_REQUEST_IID
}
/changes"
| jq
'.changes | any(.old_path == "scripts/review_apps/base-config.yaml")'
curl
"
${
CI_API_V4_URL
}
/projects/
${
CI_MERGE_REQUEST_PROJECT_ID
}
/merge_requests/
${
CI_MERGE_REQUEST_IID
}
/changes"
| jq
'.changes | any(.old_path == "scripts/review_apps/base-config.yaml")'
}
}
function
parse_gitaly_image_tag
()
{
local
gitaly_version
=
"
${
GITALY_VERSION
}
"
# returns sha if gitaly_version uses a sha
if
[[
${#
gitaly_version
}
-eq
40
]]
;
then
echo
"
${
gitaly_version
}
"
else
echo
"v
${
gitaly_version
}
"
fi
}
function
deploy
()
{
function
deploy
()
{
local
namespace
=
"
${
KUBE_NAMESPACE
}
"
local
namespace
=
"
${
KUBE_NAMESPACE
}
"
local
release
=
"
${
CI_ENVIRONMENT_SLUG
}
"
local
release
=
"
${
CI_ENVIRONMENT_SLUG
}
"
...
@@ -306,6 +317,7 @@ function deploy() {
...
@@ -306,6 +317,7 @@ function deploy() {
gitlab_webservice_image_repository
=
"
${
IMAGE_REPOSITORY
}
/gitlab-webservice-ee"
gitlab_webservice_image_repository
=
"
${
IMAGE_REPOSITORY
}
/gitlab-webservice-ee"
gitlab_task_runner_image_repository
=
"
${
IMAGE_REPOSITORY
}
/gitlab-task-runner-ee"
gitlab_task_runner_image_repository
=
"
${
IMAGE_REPOSITORY
}
/gitlab-task-runner-ee"
gitlab_gitaly_image_repository
=
"
${
IMAGE_REPOSITORY
}
/gitaly"
gitlab_gitaly_image_repository
=
"
${
IMAGE_REPOSITORY
}
/gitaly"
gitaly_image_tag
=
$(
parse_gitaly_image_tag
)
gitlab_shell_image_repository
=
"
${
IMAGE_REPOSITORY
}
/gitlab-shell"
gitlab_shell_image_repository
=
"
${
IMAGE_REPOSITORY
}
/gitlab-shell"
gitlab_workhorse_image_repository
=
"
${
IMAGE_REPOSITORY
}
/gitlab-workhorse-ee"
gitlab_workhorse_image_repository
=
"
${
IMAGE_REPOSITORY
}
/gitlab-workhorse-ee"
...
@@ -327,7 +339,7 @@ HELM_CMD=$(cat << EOF
...
@@ -327,7 +339,7 @@ HELM_CMD=$(cat << EOF
--set gitlab.migrations.image.repository="
${
gitlab_migrations_image_repository
}
"
\
--set gitlab.migrations.image.repository="
${
gitlab_migrations_image_repository
}
"
\
--set gitlab.migrations.image.tag="
${
CI_COMMIT_REF_SLUG
}
"
\
--set gitlab.migrations.image.tag="
${
CI_COMMIT_REF_SLUG
}
"
\
--set gitlab.gitaly.image.repository="
${
gitlab_gitaly_image_repository
}
"
\
--set gitlab.gitaly.image.repository="
${
gitlab_gitaly_image_repository
}
"
\
--set gitlab.gitaly.image.tag="
v
${
GITALY_VERSION
}
"
\
--set gitlab.gitaly.image.tag="
${
gitaly_image_tag
}
"
\
--set gitlab.gitlab-shell.image.repository="
${
gitlab_shell_image_repository
}
"
\
--set gitlab.gitlab-shell.image.repository="
${
gitlab_shell_image_repository
}
"
\
--set gitlab.gitlab-shell.image.tag="v
${
GITLAB_SHELL_VERSION
}
"
\
--set gitlab.gitlab-shell.image.tag="v
${
GITLAB_SHELL_VERSION
}
"
\
--set gitlab.sidekiq.annotations.commit="
${
CI_COMMIT_SHORT_SHA
}
"
\
--set gitlab.sidekiq.annotations.commit="
${
CI_COMMIT_SHORT_SHA
}
"
\
...
...
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