Skip to content
Snippets Groups Projects
Commit 417d4ea4 authored by Julian Späth's avatar Julian Späth
Browse files

Merge branch 'auto-deploy' into 'master'

Auto deploy

See merge request covid-19/frontend!3
parents 2212be79 b879781f
No related branches found
No related tags found
No related merge requests found
image: trion/ng-cli-karma
stages: stages:
- setup - setup
- check - check
- build - build
- deploy
cache: cache:
paths: paths:
- node_modules/ - node_modules/
setup: setup:
image: trion/ng-cli-karma
stage: setup stage: setup
script: script:
- npm install - npm install
check:audit: check:audit:
image: trion/ng-cli-karma
stage: check stage: check
script: script:
- npm install - npm install
...@@ -23,6 +24,7 @@ check:audit: ...@@ -23,6 +24,7 @@ check:audit:
- setup - setup
check:lint: check:lint:
image: trion/ng-cli-karma
stage: check stage: check
script: script:
- npm install - npm install
...@@ -31,6 +33,7 @@ check:lint: ...@@ -31,6 +33,7 @@ check:lint:
- setup - setup
check:test: check:test:
image: trion/ng-cli-karma
stage: check stage: check
script: script:
- npm install - npm install
...@@ -39,6 +42,7 @@ check:test: ...@@ -39,6 +42,7 @@ check:test:
- setup - setup
build: build:
image: trion/ng-cli-karma
stage: build stage: build
artifacts: artifacts:
paths: paths:
...@@ -50,3 +54,21 @@ build: ...@@ -50,3 +54,21 @@ build:
- check:audit - check:audit
- check:lint - check:lint
- check:test - check:test
deploy:
image: docker
stage: deploy
only:
- master
services:
- docker:dind
variables:
CONTAINER_HOSTNAME: docker
before_script:
- docker info
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script:
- docker build -t gitlab.lrz.de:5005/covid-19/frontend .
- docker push gitlab.lrz.de:5005/covid-19/frontend
dependencies:
- build
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