From 45f406b9c074d189b59de78f449e4fbae7f11199 Mon Sep 17 00:00:00 2001 From: M9713 <m9713@student.jamk.fi> Date: Fri, 22 Oct 2021 19:22:34 +0300 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e005662..15df021 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,11 +14,22 @@ build: - echo "Building Backend" - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json - - /kaniko/executor --context $CI_PROJECT_DIR/backend-express --dockerfile $CI_PROJECT_DIR/backend-express/Dockerfile --destination $CI_REGISTRY_IMAGE:backend + - /kaniko/executor + --context https://gitlab.labranet.jamk.fi/conduitmiau/conduit-backend + --dockerfile https://gitlab.labranet.jamk.fi/conduitmiau/conduit-backend/Dockerfile + --destination $CI_REGISTRY_IMAGE:backend # Build Frontend - echo "Building Frontend" - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json - - /kaniko/executor --context $CI_PROJECT_DIR/front-react --dockerfile $CI_PROJECT_DIR/front-react/Dockerfile --destination $CI_REGISTRY_IMAGE:front + - /kaniko/executor + --context https://gitlab.labranet.jamk.fi/conduitmiau/conduit-front + --dockerfile https://gitlab.labranet.jamk.fi/conduitmiau/conduit-front/Dockerfile + --destination $CI_REGISTRY_IMAGE:frontend + + + + + -- GitLab