From 2cfebc34e4dd3234fea9c716a4c2b907d42ece4d Mon Sep 17 00:00:00 2001 From: s87777 <s87777@bht-berlin.de> Date: Tue, 12 Dec 2023 17:13:06 +0100 Subject: [PATCH] Build New Image --- .gitlab-ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 73bf49b..851a9a1 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 -- GitLab