Commit e7ff5cfb authored by Ľuboslav Pivarč's avatar Ľuboslav Pivarč
Browse files

Update .gitlab-ci.yml

parent b2778d58
Pipeline #21418 passed with stages
in 17 minutes and 51 seconds
...@@ -18,8 +18,8 @@ API docker image build: ...@@ -18,8 +18,8 @@ API docker image build:
<<: *docker-login <<: *docker-login
image: docker:latest image: docker:latest
script: script:
- docker build --pull -t "${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_NAME}" ./cbioondemandK8S - docker build --pull -t "${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHA}" ./cbioondemandK8S
- docker push "$CI_REGISTRY_IMAGE:${CI_COMMIT_REF_NAME}" - docker push "$CI_REGISTRY_IMAGE:${CI_COMMIT_SHA}"
only: only:
refs: refs:
- master - master
...@@ -31,7 +31,7 @@ API Kube deploy: ...@@ -31,7 +31,7 @@ API Kube deploy:
variables: variables:
NAMESPACE: cbio-on-demand NAMESPACE: cbio-on-demand
script: script:
- sed -i "s^__IMAGE__^${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_NAME}^" ./k8s/deployment.yml - sed -i "s^__IMAGE__^${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHA}^" ./k8s/deployment.yml
- sed -i "s^__NAMESPACE__^${NAMESPACE}^" ./k8s/deployment.yml ./k8s/service.yml - sed -i "s^__NAMESPACE__^${NAMESPACE}^" ./k8s/deployment.yml ./k8s/service.yml
- kubectl version - kubectl version
- kubectl get pods -n cbio-on-demand - kubectl get pods -n cbio-on-demand
......
Markdown is supported
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