diff --git a/Dockerfile b/Dockerfile index 23c4ac6b826c7ae46f7b916546205b5522a8682b..393fb090fb9e68705922fa901f3c893dd53c681c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,4 +6,4 @@ ENV GROUPID=${GROUPID} ENV PORT_PREFIX=${PORT_PREFIX} # Copy nginx config to the container -COPY nginx.conf /etc/nginx/nginx.conf \ No newline at end of file +COPY nginx.conf /etc/nginx/nginx.conf diff --git a/frontend/.gitlab-ci.yaml b/frontend/.gitlab-ci.yaml new file mode 100644 index 0000000000000000000000000000000000000000..bd99a6bf95673e0af756b3ecb9b10a91454a6f35 --- /dev/null +++ b/frontend/.gitlab-ci.yaml @@ -0,0 +1,16 @@ +image: docker:latest +services: + - docker:dind + +variables: + DOCKER_DRIVER: overlay + +stages: + - build + +docker-build: + stage: build + script: + - docker build -t registry.gitlab.com/vegarms/tdt4242-base . + - docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.com + - docker push registry.gitlab.com/vegarms/tdt4242-base