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

Add template.

parents
Branches
No related tags found
No related merge requests found
Pipeline #2519 failed
Dockerfile
.gitlab-ci.yml
.editorconfig
README.md
.git
bower.json
.bowerrc
.gitignore
build.sh
package.json
node_modules/
# http://editorconfig.org
root = true
[*]
indent_style = tab
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = false
insert_final_newline = true
[*.yml]
indent_style = space
indent_size = 2
stages:
- test
- release
tidy:
image: dbogatov/docker-images:tidy-latest
stage: test
before_script:
- http-server -p 8080 > /dev/null &
- sleep 5
script:
- curl -Ls http://localhost:8080/index.html | tidy -e
tags:
- docker
blc:
image: dbogatov/docker-images:blc-latest
stage: test
before_script:
- http-server -p 8080 > /dev/null &
- sleep 5
script:
- blc --filter-level 3 --input http://localhost:8080/index.html -rog --exclude "*linkedin.*" --exclude *facebook.* | tee blc.out
- "cat blc.out | grep '0 broken.'"
tags:
- docker
# SETUP YOURSELF
dockerify:
stage: release
script:
- docker build -t registry.dbogatov.org/templates/simple-webpage .
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.dbogatov.org
- docker push registry.dbogatov.org/templates/simple-webpage
tags:
- shell
pages:
image: dbogatov/docker-images:alpine-extras-latest
stage: release
script:
- mkdir public/
- mv assets/ *.html public/
- echo "Uploading files to pages"
artifacts:
expire_in: 30 min
paths:
- public
tags:
- docker
only:
- master
FROM dbogatov/docker-images:nginx-latest
MAINTAINER Dmytro Bogatov dmytro@dbogatov.org
WORKDIR /srv
# Copy the source
COPY . .
# Copy the NGINX config
COPY nginx.conf /etc/nginx/conf.d/default.conf
# Remove NGINX config from source
RUN rm nginx.conf
CMD ["nginx", "-g", "daemon off;"]
# Your website
<!DOCTYPE html>
<html lang="ru">
<head>
<title>You title</title>
</head>
<body>
<h1>
Your content
</h1>
</body>
</html>
server {
listen 80;
server_name _;
root /srv/;
location = / {
index index.html;
}
location / {
try_files $uri.html $uri =404;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment