This commit is contained in:
parent
625a08eb55
commit
8e18f849de
18
.gitea/workflows/deployProd.yml
Normal file
18
.gitea/workflows/deployProd.yml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
name: Deploy
|
||||||
|
run-name: ${{ gitea.actor }} build image and push to container registry
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'main'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
DeployService:
|
||||||
|
runs-on: [frontprod]
|
||||||
|
needs: CreateImage
|
||||||
|
uses: https://gitea.pena/PenaDevops/actions.git/.gitea/workflows/deploy.yml@v1.1.4-p7
|
||||||
|
with:
|
||||||
|
runner: hubprod
|
||||||
|
actionid: ${{ gitea.run_id }}
|
||||||
|
|
||||||
|
|
26
.gitea/workflows/deployStaging.yml
Normal file
26
.gitea/workflows/deployStaging.yml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
name: Deploy
|
||||||
|
run-name: ${{ gitea.actor }} build image and push to container registry
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'staging'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
CreateImage:
|
||||||
|
runs-on: [hubstaging]
|
||||||
|
uses: http://gitea.pena/PenaDevops/actions.git/.gitea/workflows/build-image.yml@v1.1.6-p
|
||||||
|
with:
|
||||||
|
runner: hubstaging
|
||||||
|
secrets:
|
||||||
|
REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
|
||||||
|
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
|
||||||
|
DeployService:
|
||||||
|
runs-on: [frontstaging]
|
||||||
|
needs: CreateImage
|
||||||
|
uses: http://gitea.pena/PenaDevops/actions.git/.gitea/workflows/deploy.yml@v1.1.4-p7
|
||||||
|
with:
|
||||||
|
runner: frontstaging
|
||||||
|
actionid: ${{ gitea.run_id }}
|
||||||
|
|
||||||
|
|
14
.gitea/workflows/lint.yml
Normal file
14
.gitea/workflows/lint.yml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
name: Lint
|
||||||
|
run-name: ${{ gitea.actor }} produce linting
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'dev'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Lint:
|
||||||
|
runs-on: [hubstaging]
|
||||||
|
uses: http://gitea.pena/PenaDevops/actions.git/.gitea/workflows/lint.yml@v1.1.0
|
||||||
|
with:
|
||||||
|
runner: hubstaging
|
@ -1,21 +0,0 @@
|
|||||||
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
|
|
@ -1,8 +1,7 @@
|
|||||||
version: '3'
|
|
||||||
services:
|
services:
|
||||||
certbot:
|
certbot:
|
||||||
image: certbot/certbot:latest
|
image: certbot/certbot:latest
|
||||||
command: certonly -n -m kotilion.95@gmail.com --expand --agree-tos -v --webroot --webroot-path /var/www/certbot/ -d pena.digital,www.pena.digital,hub.pena.digital,docs.pena.digital,quiz.pena.digital,oauth.pena.digital,links.pena.digital,metrica.pena.digital,hbpn.link,solyanka.pena.digital,tourism.pena.digital,penaquiz.online,www.penaquiz.online,penaquiz.ru,www.penaquiz.ru
|
command: certonly -n -m kotilion.95@gmail.com --expand --agree-tos -v --webroot --webroot-path /var/www/certbot/ -d pena.digital,www.pena.digital,hub.pena.digital,docs.pena.digital,quiz.pena.digital,oauth.pena.digital,links.pena.digital,metrica.pena.digital,hbpn.link,solyanka.pena.digital,tourism.pena.digital,penaquiz.online,www.penaquiz.online,penaquiz.ru,www.penaquiz.ru
|
||||||
volumes:
|
volumes:
|
||||||
- /builds/frontend/nginx-proxy/deployments/main/certbot/www/:/var/www/certbot/:rw
|
- ./acme/:/var/www/certbot/:rw
|
||||||
- /builds/frontend/nginx-proxy/deployments/main/nginx/certs/:/etc/letsencrypt/:rw
|
- ./certs/:/etc/letsencrypt/:rw
|
||||||
|
Loading…
Reference in New Issue
Block a user