From 5ff3440441bd96b0c1fda41237f50b803d390820 Mon Sep 17 00:00:00 2001 From: ikvassil <ikvassil@stud.ntnu.no> Date: Tue, 23 Feb 2021 10:41:37 +0100 Subject: [PATCH] Add yaml file --- Dockerfile | 2 +- frontend/.gitlab-ci.yaml | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 frontend/.gitlab-ci.yaml diff --git a/Dockerfile b/Dockerfile index 23c4ac6..393fb09 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 0000000..bd99a6b --- /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 -- GitLab