Commit fe85625b authored by Nane Kratzke's avatar Nane Kratzke
Browse files

Aktualisieren .gitlab-ci.yml

parent 22c1180a
...@@ -5,15 +5,15 @@ stages: ...@@ -5,15 +5,15 @@ stages:
- test - test
- build - build
test: build-to-test:
stage: test stage: test
script: script:
- docker build -t web:test . - docker build -t web:test .
- docker run -d -p 8888:80 web:test - docker run -d -p 8080:80 web:test
- wget http://docker:8888 --output-document fetched.html - wget http://docker:8080 --output-document fetched.html
- cmp fetched.html web/index.html - cmp fetched.html web/index.html
build: publish:
stage: build stage: build
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
......
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