Skip to content
Snippets Groups Projects
Verified Commit a0bba7d3 authored by Dmytro Bogatov's avatar Dmytro Bogatov :two_hearts:
Browse files

Fix CI.

parent b28c502f
Branches
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@ stages:
- build
- test
- release
#- deploy
- deploy
build:
stage: build
......@@ -16,7 +16,7 @@ build:
paths:
- _site/
tags:
- Docker
- docker
tidy:
stage: test
......@@ -26,9 +26,9 @@ tidy:
- http-server _site/ -p 8080 > /dev/null &
- sleep 5
script:
- curl -Ls http://localhost:8080 | tidy -e #-config tidy.conf -e
- curl -Ls http://localhost:8080 | tidy -e
tags:
- Docker
- docker
blc:
stage: test
......@@ -40,18 +40,15 @@ blc:
script:
- blc --filter-level 3 --input http://localhost:8080 -rog --exclude www.nginx.com
tags:
- Docker
- docker
# dockerify:
# stage: release
# dependencies:
# - build
# before_script:
# - docker info
# script:
# - cd src/EShop
# - docker build -t registry.dbogatov.org/dbogatov/shevastreameshop .
# - docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.dbogatov.org
# - docker push registry.dbogatov.org/dbogatov/shevastreameshop
# tags:
# - Shell
dockerify:
stage: release
dependencies:
- build
script:
- docker build -t registry.dbogatov.org/dbogatov/my-blog .
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.dbogatov.org
- docker push registry.dbogatov.org/dbogatov/my-blog
tags:
- shell
FROM dbogatov/docker-containers:nginx-latest
MAINTAINER Dmytro Bogatov dmytro@dbogatov.org
WORKDIR /srv
# Copy the source
COPY _site/ .
# Copy the NGINX config
COPY nginx.conf /etc/nginx/conf.d/default.conf
CMD ["nginx", "-g", "daemon off;"]
server {
listen 80;
server_name _;
root /srv/;
index index.html;
location / {
try_files $uri $uri.html $uri/index.html $uri/ index.html;
}
error_page 404 /404.html;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment