Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
phytopathdb-static
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
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
ensembl-web
phytopathdb-static
Commits
0c102714
Commit
0c102714
authored
4 years ago
by
Kamal Dodiya
Browse files
Options
Downloads
Patches
Plain Diff
Deploy to WP cluster using deploy template
parent
931d06f5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+24
-9
24 additions, 9 deletions
.gitlab-ci.yml
with
24 additions
and
9 deletions
.gitlab-ci.yml
+
24
−
9
View file @
0c102714
...
...
@@ -2,6 +2,15 @@ stages:
-
build_image
-
deploy
.deploy
:
stage
:
deploy
image
:
dockerhub.ebi.ac.uk/kamal/deploy-tools:0.1
script
:
-
sed -i "s/<CI_PROJECT_PATH_SLUG>/${CI_PROJECT_PATH_SLUG}/g" phytopathdb_deployment.yaml
-
sed -i "s/<CI_ENVIRONMENT_SLUG>/${CI_ENVIRONMENT_SLUG}/g" phytopathdb_deployment.yaml
-
sed -i "s/<VERSION>/${CI_COMMIT_SHORT_SHA}/g" phytopathdb_deployment.yaml
-
kubectl apply -f phytopathdb_deployment.yaml
Build Image
:
stage
:
build_image
...
...
@@ -22,17 +31,23 @@ Build Image:
only
:
-
master
Deploy Staging
:
stage
:
deploy
image
:
dockerhub.ebi.ac.uk/kamal/deploy-tools:0.1
Live:EHK
:
extends
:
.deploy
environment
:
name
:
eg-static-staging
only
:
-
master
script
:
-
sed -i "s/<CI_PROJECT_PATH_SLUG>/${CI_PROJECT_PATH_SLUG}/g" phytopathdb_deployment.yaml
-
sed -i "s/<CI_ENVIRONMENT_SLUG>/${CI_ENVIRONMENT_SLUG}/g" phytopathdb_deployment.yaml
-
sed -i "s/<VERSION>/${CI_COMMIT_SHORT_SHA}/g" phytopathdb_deployment.yaml
-
kubectl apply -f phytopathdb_deployment.yaml
Live:WP-HX
:
extends
:
.deploy
environment
:
name
:
wp-hx-eg-static
only
:
-
master
Live:WP-HH
:
extends
:
.deploy
environment
:
name
:
wp-hh-eg-static
only
:
-
master
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
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