cd
This commit is contained in:
parent
bf96c7f294
commit
a36281df55
21
.gitlab-ci.yml
Normal file
21
.gitlab-ci.yml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
include:
|
||||||
|
- project: "devops/pena-continuous-integration"
|
||||||
|
file: "/templates/docker/deploy-template.gitlab-ci.yml"
|
||||||
|
stages:
|
||||||
|
- deploy
|
||||||
|
deploy-to-prod:
|
||||||
|
tags:
|
||||||
|
- prod
|
||||||
|
- front
|
||||||
|
extends: .deploy_template
|
||||||
|
variables:
|
||||||
|
PRODUCTION_BRANCH: main
|
||||||
|
before_script:
|
||||||
|
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
||||||
|
after_script:
|
||||||
|
- ls
|
||||||
|
rules:
|
||||||
|
- if: "$CI_COMMIT_BRANCH == $PRODUCTION_BRANCH"
|
||||||
|
script:
|
||||||
|
- docker login -u $REGISTRY_USER -p $REGISTRY_TOKEN $CI_REGISTRY
|
||||||
|
- docker-compose -f deployments/$CI_COMMIT_BRANCH/docker-compose.yaml up -d
|
8
deployments/main/docker-compose.yaml
Normal file
8
deployments/main/docker-compose.yaml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
certbot:
|
||||||
|
image: certbot/certbot:latest
|
||||||
|
command: certonly -n -m kotilion.95@gmail.com --agree-tos -v --webroot --webroot-path /var/www/certbot/ -d pena.digital,hub.pena.digital,docs.pena.digital,quiz.pena.digital,oauth.pena.digital,links.pena.digital,metrica.pena.digital
|
||||||
|
volumes:
|
||||||
|
- /builds/frontend/nginx-proxy/deployments/main/certbot/www/:/var/www/certbot/:rw
|
||||||
|
- /builds/frontend/nginx-proxy/deployments/main/nginx/certs/:/etc/letsencrypt/:rw
|
Loading…
Reference in New Issue
Block a user