diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2e7bfc6128ea5f150d6ffb62d74c1a4c5e76ab82..3c7742cc76b4dc0e632d2222ba35c16abc3ed54a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,7 +7,7 @@ stages: - build backend -# - build frontend + - build frontend # - test # - deploy mongodb # - deploy backend @@ -45,25 +45,25 @@ build backend: -#build frontend: -# stage: build frontend +build frontend: + stage: build frontend # when: manual -# image: -# name: gcr.io/kaniko-project/executor:debug -# entrypoint: [""] + image: + name: gcr.io/kaniko-project/executor:debug + entrypoint: [""] -# script: + script: # 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/conduit-front -# --dockerfile $CI_PROJECT_DIR/conduit-front/Dockerfile -# --destination $CI_REGISTRY_IMAGE:front: #${CI_COMMIT_TAG} + - echo "Building Frontend" + - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json + - /kaniko/executor + --context git://gitlab.labranet.jamk.fi/conduitmiau/conduit-front + --dockerfile Dockerfile + --destination $CI_REGISTRY_IMAGE:front-$CI_COMMIT_SHORT_SHA #deploy mongodb: