Commit 5072cfd6 authored by François Agneray's avatar François Agneray
Browse files

Add gitlab-ci

parent d76db3cc
Pipeline #4770 passed with stage
in 25 seconds

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.
stages:
- dockerize
dockerize:
image: docker:stable
stage: dockerize
cache: {}
dependencies: []
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker pull $CI_REGISTRY/anis/anis-website/website:latest || true
- docker build --cache-from $CI_REGISTRY/anis/anis-website/website:latest -t $CI_REGISTRY/anis/anis-website/website:latest .
- docker push $CI_REGISTRY/anis/anis-website/website:latest
FROM nginx
COPY src /usr/share/nginx/html
......@@ -12,7 +12,7 @@ list:
@echo " status > display $(NAME_APP) container status"
start:
@docker run --rm --name $(NAME_APP) -d -p 8888:80 -v $(CURDIR):/usr/share/nginx/html:ro nginx
@docker run --rm --name $(NAME_APP) -d -p 8888:80 -v $(CURDIR)/src:/usr/share/nginx/html:ro nginx
restart: stop start
......
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