add build

This commit is contained in:
Blair Vanderlugt 2021-09-21 14:54:31 +03:00
parent 0d4df54f7e
commit d7e1989dae
3 changed files with 27 additions and 0 deletions

7
.dockerignore Normal file
View File

@ -0,0 +1,7 @@
pelican
__pycache__
*.pyc
*.o
output/
node_modules/
.venv/

15
.gitlab-ci.yaml Normal file
View File

@ -0,0 +1,15 @@
stages:
- build
- test
- deploy
image: docker:19.03.12
before_script:
- docker info
build:
stage: build
script:
- docker build -t $CI_REGISTRY_IMAGE:${TAG:-latest} .
- docker push $CI_REGISTRY_IMAGE:${TAG:-latest}

View File

@ -10,5 +10,10 @@ source env/bin/activate
pip install -r requirements.txt
make devserver
```
## With Docker
docker build -t ge-blog .
docker run -p 8000:80 ge-blog