diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 73bf49bb41181bc6cbf07fd15126a14bb035567f..851a9a1cc478936f787afbd84f3be6ecd0ef4e02 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,6 +5,15 @@ services: stages: - test +build-job: + stage: test + script: + - echo $CI_REGISTRY_PASSWORD | docker login $CI_REGISTRY -u $CI_REGISTRY_USER --password-stdin + - docker build -t registry.bht-berlin.de:443/s87777/profwebfrontend:latest . + - docker push registry.bht-berlin.de:443/s87777/profwebfrontend + tags: + - docker-privileged + test-job: stage: test image: node:latest @@ -34,5 +43,7 @@ test-job: - echo "starting tests" - npm test - echo "tests done" + dependencies: + - build-job tags: - docker-privileged \ No newline at end of file