Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Partition
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSDU
OSDU Data Platform
System
Partition
Commits
070a7cef
Commit
070a7cef
authored
2 years ago
by
Danylo Vanin (EPAM)
Committed by
Oleksandr Kosse (EPAM)
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[GONRG-4699] Refactor bootstrap pipeline
parent
eb308494
No related branches found
No related tags found
2 merge requests
!229
Merge branch 'dependency-upgrade' into 'master'
,
!167
[GONRG-4699] Refactor bootstrap pipeline
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+3
-4
3 additions, 4 deletions
.gitlab-ci.yml
provider/partition-gcp/bootstrap/bootstrap_partition.yml
+0
-18
0 additions, 18 deletions
provider/partition-gcp/bootstrap/bootstrap_partition.yml
with
3 additions
and
22 deletions
.gitlab-ci.yml
+
3
−
4
View file @
070a7cef
...
@@ -14,6 +14,7 @@ variables:
...
@@ -14,6 +14,7 @@ variables:
IBM_INT_TEST_SUBDIR
:
testing/partition-test-ibm
IBM_INT_TEST_SUBDIR
:
testing/partition-test-ibm
# --- osdu gcp specific variables ---
# --- osdu gcp specific variables ---
OSDU_GCP_ENABLE_BOOTSTRAP
:
"
true"
OSDU_GCP_SERVICE
:
partition
OSDU_GCP_SERVICE
:
partition
OSDU_GCP_VENDOR
:
gcp
OSDU_GCP_VENDOR
:
gcp
OSDU_GCP_APPLICATION_NAME
:
os-partition
OSDU_GCP_APPLICATION_NAME
:
os-partition
...
@@ -60,12 +61,10 @@ include:
...
@@ -60,12 +61,10 @@ include:
-
project
:
"
osdu/platform/ci-cd-pipelines"
-
project
:
"
osdu/platform/ci-cd-pipelines"
file
:
"
publishing/pages.yml"
file
:
"
publishing/pages.yml"
-
local
:
"
/provider/partition-gcp/bootstrap/bootstrap_partition.yml"
osdu-gcp-deploy-deployment
:
osdu-gcp-deploy-deployment
:
variables
:
variables
:
OSDU_GCP_BOOTSTRAP_SERVICE
:
partition-bootstrap
OSDU_GCP_BOOTSTRAP_SERVICE
:
partition-bootstrap
needs
:
[
"
osdu-gcp-containerize-gitlab"
,
"
osdu-gcp-containerize-bootstrap-
partition
"
,
"
osdu-gcp-deploy-configmap"
]
needs
:
[
"
osdu-gcp-containerize-gitlab"
,
"
osdu-gcp-containerize-bootstrap-
gitlab
"
,
"
osdu-gcp-deploy-configmap"
]
after_script
:
after_script
:
-
echo ----- Verify Bootstrap -----
-
echo ----- Verify Bootstrap -----
-
kubectl rollout status deployment.v1.apps/$OSDU_GCP_BOOTSTRAP_SERVICE -n $OSDU_GCP_HELM_NAMESPACE --timeout=900s
-
kubectl rollout status deployment.v1.apps/$OSDU_GCP_BOOTSTRAP_SERVICE -n $OSDU_GCP_HELM_NAMESPACE --timeout=900s
...
@@ -78,7 +77,7 @@ osdu-gcp-dev2-deploy-deployment:
...
@@ -78,7 +77,7 @@ osdu-gcp-dev2-deploy-deployment:
variables
:
variables
:
OSDU_GCP_BOOTSTRAP_SERVICE
:
partition-bootstrap
OSDU_GCP_BOOTSTRAP_SERVICE
:
partition-bootstrap
OSDU_GCP_BOOTSTRAP_SERVICE_ACCOUNT
:
workload-gke-bootstrap-sa
OSDU_GCP_BOOTSTRAP_SERVICE_ACCOUNT
:
workload-gke-bootstrap-sa
needs
:
[
"
osdu-gcp-containerize-gitlab"
,
"
osdu-gcp-containerize-bootstrap-
partition
"
,
"
osdu-gcp-dev2-deploy-configmap"
]
needs
:
[
"
osdu-gcp-containerize-gitlab"
,
"
osdu-gcp-containerize-bootstrap-
gitlab
"
,
"
osdu-gcp-dev2-deploy-configmap"
]
after_script
:
after_script
:
-
echo ----- Verify Bootstrap -----
-
echo ----- Verify Bootstrap -----
-
kubectl rollout status deployment.v1.apps/$OSDU_GCP_BOOTSTRAP_SERVICE -n $OSDU_GCP_HELM_NAMESPACE --timeout=900s
-
kubectl rollout status deployment.v1.apps/$OSDU_GCP_BOOTSTRAP_SERVICE -n $OSDU_GCP_HELM_NAMESPACE --timeout=900s
...
...
This diff is collapsed.
Click to expand it.
provider/partition-gcp/bootstrap/bootstrap_partition.yml
deleted
100644 → 0
+
0
−
18
View file @
eb308494
osdu-gcp-containerize-bootstrap-partition
:
stage
:
containerize
needs
:
[
"
compile-and-unit-test"
]
image
:
docker:19.03.15
tags
:
[
"
osdu-small"
]
services
:
-
docker:20.10.7-dind
variables
:
IMAGE_NAME
:
osdu-gcp-bootstrap-partition
script
:
# Gitlab Container Registry
-
export EXTRA_DOCKER_TAG=""; if [ "$CI_COMMIT_TAG" != "" ] ; then EXTRA_DOCKER_TAG="-t $CI_REGISTRY_IMAGE/$IMAGE_NAME:$CI_COMMIT_TAG" ; elif [ "$CI_COMMIT_REF_NAME" = "master" ] ; then EXTRA_DOCKER_TAG="-t $CI_REGISTRY_IMAGE/$IMAGE_NAME:latest" ; fi
-
docker build -t $CI_REGISTRY_IMAGE/$IMAGE_NAME:$CI_COMMIT_SHORT_SHA $EXTRA_DOCKER_TAG --file provider/partition-gcp/bootstrap/Dockerfile .
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker push $CI_REGISTRY_IMAGE/$IMAGE_NAME
rules
:
-
if
:
"
$OSDU_GCP
==
'true'"
when
:
on_success
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment