Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
europdx
k8s
cbio-on-demand
Kubernetes-Docker
Commits
50368e23
Commit
50368e23
authored
Jul 30, 2019
by
Ľuboslav Pivarč
Browse files
Update .gitlab-ci.yml
parent
2039cba6
Pipeline
#21246
failed
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
0 → 100644
View file @
50368e23
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment