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

fixed gitlab-ci

parent 07e50538
Pipeline #21095 failed with stages
in 12 seconds
......@@ -16,7 +16,7 @@ API docker image build:
<<: *docker-login
image: docker:latest
script:
- docker build --pull -t "${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_NAME} ."
- docker build --pull -t "${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_NAME}" .
- docker push "$CI_REGISTRY_IMAGE:${CI_COMMIT_REF_NAME}"
only:
refs:
......@@ -29,11 +29,11 @@ API Kube deploy:
variables:
NAMESPACE: cbio-on-demand
script:
- sed -i "s/__IMAGE__/${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_NAME}"
- sed -i "s/__NAMESPACE__/${NAMESPACE}"
- sed -i "s/__IMAGE__/${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_NAME} ./k8s/deployment.yml"
- sed -i "s/__NAMESPACE__/${NAMESPACE}" ./k8s/deployment.yml ./k8s/identifier.yml./k8s/service.yml
- kubectl get pods -n cbio-on-demand
- kubectl apply -f ./k8s
- kubectl rollout status -f ./k8s/deployment.yaml
- kubectl rollout status -f ./k8s/deployment.yml
only:
refs:
- master
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