Skip to content
Snippets Groups Projects
Commit ea4cfe43 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

ci

parent be70d82b
No related branches found
No related tags found
No related merge requests found
...@@ -24,16 +24,6 @@ ...@@ -24,16 +24,6 @@
# #
variables: variables:
SQL_RESTORE: ""
NIS_ENABLE: ""
NIS_DOMAIN: ""
NIS_SERVER: ""
PORT_SSL: ""
DOCKER_TZ: ""
DOCKER_MAIL: ""
MAKE_TEST: ""
MYSQL_ROOT_PASSWORD: caosdb1234
CI_REGISTRY_IMAGE: $CI_REGISTRY/caosdb
# When using dind service we need to instruct docker, to talk with the # When using dind service we need to instruct docker, to talk with the
# daemon started inside of the service. The daemon is available with # daemon started inside of the service. The daemon is available with
# a network connection instead of the default /var/run/docker.sock socket. # a network connection instead of the default /var/run/docker.sock socket.
...@@ -59,10 +49,27 @@ variables: ...@@ -59,10 +49,27 @@ variables:
services: services:
- docker:dind - docker:dind
code_style: stages:
script: "flake8 --count ." - deploy
- test
- style
code_style:
stage: style
script: "flake8 --count ."
services: deploy-to-swarm:
- name: mariadb:10.4 stage: deploy
- name: "$CI_REGISTRY_IMAGE:latest" variables:
SERVICE_NAME: caosdb_stack
image: docker:latest
script:
- docker login -u testuser -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker stack deploy
--with-registry-auth
--compose-file=.docker-stack-base.yml
$SERVICE_NAME
test:
stage: test
script:
- echo "test"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment