Skip to content
Snippets Groups Projects
Commit 0c102714 authored by Kamal Dodiya's avatar Kamal Dodiya
Browse files

Deploy to WP cluster using deploy template

parent 931d06f5
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment