Skip to content
Snippets Groups Projects
Commit abe8c615 authored by Thomas  MENARD's avatar Thomas MENARD
Browse files

Update README

parent 3ed6c4fe
No related branches found
No related tags found
No related merge requests found
......@@ -70,6 +70,30 @@ CMD gunicorn -b :$PORT mysite.wsgi
4. Setup Gitlab CI
```yaml
image: docker:latest
stages:
- build
- deploy
services:
- docker:dind
variables:
DOCKER_HOST: tcp://localhost:2375
build:
stage: build
script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
- docker build -t ${CI_REGISTRY}/${CI_PROJECT_NAME}/polls:${CI_COMMIT_SHORT_SHA} .
- docker tag ${CI_REGISTRY}/${CI_PROJECT_NAME}/polls:${CI_COMMIT_SHORT_SHA} ${CI_REGISTRY}/${CI_PROJECT_NAME}/polls:latest
- docker push -- ${CI_REGISTRY}/${CI_PROJECT_NAME}/polls
tags:
- k8s
```
5. Create manifest yaml file
* PostgreSQL Server
* Persistent Volume Claim
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment