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

Update .gitlab-ci.yml

parent 2039cba6
Pipeline #21246 failed
stages:
- build
- deploy
.kube-auth: &kube-auth
before_script:
- mkdir $HOME/.kube
- touch $HOME/.kube/config
- echo "$KUBE_CONFIG" >> $HOME/.kube/config
.docker-login: &docker-login
before_script:
- echo -n $CI_REGISTRY_PASSWORD | docker login -u "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY
#- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
cBioApp build:
stage: build
<<: *docker-login
image docker:latest
script:
- docker build --pull -t "${CI_REGISTRY_IMAGE}:app${CI_COMMIT_SHA}" ./builds/cbioapp
- docker push "$CI_REGISTRY_IMAGE:app${CI_COMMIT_SHA}"
when: manual
cBioDb build:
stage: build
<<: *docker-login
image docker:latest
script:
- docker build --pull -t "${CI_REGISTRY_IMAGE}:db${CI_COMMIT_SHA}" ./builds/cbiodb
- docker push "$CI_REGISTRY_IMAGE:db${CI_COMMIT_SHA}"
when: manual
job build:
stage: build
<: *docker-login
image docker:latest
script:
- docker build --pull -t "${CI_REGISTRY_IMAGE}:job${CI_COMMIT_SHA}" ./builds/job
- docker push "$CI_REGISTRY_IMAGE:job${CI_COMMIT_SHA}"
when: manual
deploy to k8s:
stage: deploy
<<: *kube-auth
image: registry.gitlab.ics.muni.cz:443/europdx/k8s/ci:latest
script:
- kubectl version
- kubectl apply -f ./yaml
when:
manual
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