Skip to content
Snippets Groups Projects
Commit 3fd7dc70 authored by Johan Tanderup Degn's avatar Johan Tanderup Degn
Browse files

Added procedure to build 2 docker images (without docker-sompose)

parent 83044be6
No related branches found
No related tags found
3 merge requests!29Release of Prototype,!16Feature/ci cd,!12Added Docker-compose with Python server and nginx - working. /persistence/...
Pipeline #51784 failed
stages:
- test
- create-vue-build
- build-docker-container
- build-docker-server-container
- build-docker-web-container
test:
stage: test
......@@ -16,7 +17,6 @@ test:
create-vue-build:
only:
# - master
- develop
stage: create-vue-build
image: node
......@@ -34,11 +34,10 @@ create-vue-build:
paths:
- website/studerende-dk/node_modules/
build-docker-container:
build-docker-web-container:
only:
# - master
- develop
stage: build-docker-container
stage: build-docker-frontend-container
image: docker:latest
services:
- name: docker:19.03.8-dind
......@@ -46,5 +45,19 @@ build-docker-container:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script:
- cd website/studerende-dk
- docker build . -t "$CI_REGISTRY_IMAGE"
- docker push "$CI_REGISTRY_IMAGE"
- docker build . -t "$CI_REGISTRY_IMAGE""-web"
- docker push "$CI_REGISTRY_IMAGE""-web"
build-docker-server-container:
only:
- develop
stage: build-docker-container
image: docker:latest
services:
- name: docker:19.03.8-dind
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script:
- cd backend
- docker build . -t "$CI_REGISTRY_IMAGE""-server"
- docker push "$CI_REGISTRY_IMAGE""-server"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment