Commit 4a9e815f authored by Nane Kratzke's avatar Nane Kratzke
Browse files

Aktualisieren .gitlab-ci.yml

parent fcfe47f8
services:
- docker:dind
stages: stages:
- test - test
- build - build
test: test:
stage: test stage: test
image: docker:19.03.12
script: script:
- docker build -t web:test . - docker build -t web:test .
- docker run -d -p 80:80 web:test - docker run -d -p 80:80 web:test
...@@ -12,8 +14,6 @@ test: ...@@ -12,8 +14,6 @@ test:
build: build:
stage: build stage: build
services:
- docker:dind
script: script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker build -t $CI_REGISTRY_IMAGE/web:$CI_COMMIT_SHA -t $CI_REGISTRY_IMAGE/web:latest . - docker build -t $CI_REGISTRY_IMAGE/web:$CI_COMMIT_SHA -t $CI_REGISTRY_IMAGE/web:latest .
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment