Skip to content
代码片段 群组 项目
未验证 提交 e91f3fce 编辑于 作者: Rémy Coutable's avatar Rémy Coutable
浏览文件

ci: Consolidate Review App jobs image


Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
上级 c53b6c3f
No related branches found
No related tags found
无相关合并请求
...@@ -114,6 +114,7 @@ variables: ...@@ -114,6 +114,7 @@ variables:
DOCS_REVIEW_APPS_DOMAIN: "35.193.151.162.nip.io" DOCS_REVIEW_APPS_DOMAIN: "35.193.151.162.nip.io"
DOCS_GITLAB_REPO_SUFFIX: "ee" DOCS_GITLAB_REPO_SUFFIX: "ee"
REVIEW_APPS_IMAGE: "${REGISTRY_HOST}/${REGISTRY_GROUP}/gitlab-build-images/ruby-3.0:gcloud-383-kubectl-1.23-helm-3.5"
REVIEW_APPS_DOMAIN: "gitlab-review.app" REVIEW_APPS_DOMAIN: "gitlab-review.app"
REVIEW_APPS_GCP_PROJECT: "gitlab-review-apps" REVIEW_APPS_GCP_PROJECT: "gitlab-review-apps"
REVIEW_APPS_GCP_REGION: "us-central1" REVIEW_APPS_GCP_REGION: "us-central1"
......
...@@ -14,7 +14,7 @@ include: ...@@ -14,7 +14,7 @@ include:
.base-before_script: &base-before_script .base-before_script: &base-before_script
- source ./scripts/utils.sh - source ./scripts/utils.sh
- source ./scripts/review_apps/review-apps.sh - source ./scripts/review_apps/review-apps.sh
- install_api_client_dependencies_with_apk - apt-get update && apt-get install -y jq
review-build-cng-env: review-build-cng-env:
extends: extends:
...@@ -72,7 +72,7 @@ review-build-cng: ...@@ -72,7 +72,7 @@ review-build-cng:
.review-workflow-base: .review-workflow-base:
extends: extends:
- .default-retry - .default-retry
image: ${REGISTRY_HOST}/${REGISTRY_GROUP}/gitlab-build-images:gitlab-helm3.5-kubectl1.17 image: ${REVIEW_APPS_IMAGE}
resource_group: "review/${CI_COMMIT_REF_NAME}" resource_group: "review/${CI_COMMIT_REF_NAME}"
variables: variables:
HOST_SUFFIX: "${CI_ENVIRONMENT_SLUG}" HOST_SUFFIX: "${CI_ENVIRONMENT_SLUG}"
......
...@@ -5,7 +5,7 @@ review-cleanup: ...@@ -5,7 +5,7 @@ review-cleanup:
extends: extends:
- .default-retry - .default-retry
- .review:rules:review-cleanup - .review:rules:review-cleanup
image: ${REGISTRY_HOST}/${REGISTRY_GROUP}/gitlab-build-images/ruby-3.0:gcloud-383-kubectl-1.23-helm-3.5 image: ${REVIEW_APPS_IMAGE}
stage: prepare stage: prepare
environment: environment:
name: review/${CI_COMMIT_REF_SLUG}${SCHEDULE_TYPE} # No separator for SCHEDULE_TYPE so it's compatible as before and looks nice without it name: review/${CI_COMMIT_REF_SLUG}${SCHEDULE_TYPE} # No separator for SCHEDULE_TYPE so it's compatible as before and looks nice without it
......
...@@ -219,7 +219,7 @@ function create_application_secret() { ...@@ -219,7 +219,7 @@ function create_application_secret() {
kubectl create secret generic --namespace "${namespace}" \ kubectl create secret generic --namespace "${namespace}" \
"shared-gitlab-initial-root-password" \ "shared-gitlab-initial-root-password" \
--from-literal="password=${REVIEW_APPS_ROOT_PASSWORD}" \ --from-literal="password=${REVIEW_APPS_ROOT_PASSWORD}" \
--dry-run -o json | kubectl apply -f - --dry-run=client -o json | kubectl apply -f -
else else
echoinfo "The 'shared-gitlab-initial-root-password' secret already exists in the ${namespace} namespace." echoinfo "The 'shared-gitlab-initial-root-password' secret already exists in the ${namespace} namespace."
fi fi
...@@ -232,7 +232,7 @@ function create_application_secret() { ...@@ -232,7 +232,7 @@ function create_application_secret() {
kubectl create secret generic --namespace "${namespace}" \ kubectl create secret generic --namespace "${namespace}" \
"shared-gitlab-license" \ "shared-gitlab-license" \
--from-file=license="${REVIEW_APPS_EE_LICENSE_FILE}" \ --from-file=license="${REVIEW_APPS_EE_LICENSE_FILE}" \
--dry-run -o json | kubectl apply -f - --dry-run=client -o json | kubectl apply -f -
else else
echoinfo "The 'shared-gitlab-license' secret already exists in the ${namespace} namespace." echoinfo "The 'shared-gitlab-license' secret already exists in the ${namespace} namespace."
fi fi
......
...@@ -72,10 +72,6 @@ function setup_db() { ...@@ -72,10 +72,6 @@ function setup_db() {
run_timed_command "setup_db_praefect" run_timed_command "setup_db_praefect"
} }
function install_api_client_dependencies_with_apk() {
run_timed_command "apk add --update openssl curl jq"
}
function install_gitlab_gem() { function install_gitlab_gem() {
run_timed_command "gem install httparty --no-document --version 0.18.1" run_timed_command "gem install httparty --no-document --version 0.18.1"
run_timed_command "gem install gitlab --no-document --version 4.17.0" run_timed_command "gem install gitlab --no-document --version 4.17.0"
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册