ci prod
This commit is contained in:
parent
8499a21b31
commit
8f51429006
23
.gitea/workflows/deployProd.yml
Normal file
23
.gitea/workflows/deployProd.yml
Normal file
@ -0,0 +1,23 @@
|
||||
name: Deploy
|
||||
run-name: ${{ gitea.actor }} build image and push to container registry
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'main'
|
||||
|
||||
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: [hubprod]
|
||||
needs: CreateImage
|
||||
uses: http://gitea.pena/PenaDevops/actions.git/.gitea/workflows/deploy.yml@v1.1.4-p7
|
||||
with:
|
||||
runner: hubprod
|
@ -4,7 +4,6 @@ run-name: ${{ gitea.actor }} build image and push to container registry
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'main'
|
||||
- 'staging'
|
||||
|
||||
jobs:
|
21
deployments/main/docker-compose.yaml
Normal file
21
deployments/main/docker-compose.yaml
Normal file
@ -0,0 +1,21 @@
|
||||
services:
|
||||
templategen:
|
||||
restart: unless-stopped
|
||||
image: gitea.pena/penaside/docxtemplater/main:$GITHUB_RUN_NUMBER
|
||||
ports:
|
||||
- 10.8.0.226:8012:80
|
||||
- 10.8.0.226:8443:443
|
||||
environment:
|
||||
MONGO_URL: mongodb://templategen:54143ffdd9304865586e5cf1@localhost:27017/?authSource=templategen
|
||||
PENADISK_URL: http://hubstaging.pena:8011/
|
||||
PRIVILEGES_DOMAIN: https://admin.pena.digital/strator
|
||||
KAFKA_BROKERS: hubstaging.pena:9092
|
||||
KAFKA_TARIFF_TOPIC: tariffs
|
||||
KAFKA_CONSUMER_GROUP_ID: templategen1
|
||||
EMAIL_HOST: connect.mailclient.bz
|
||||
EMAIL_PORT: 587
|
||||
EMAIL_SENDER: noreply@mailing.pena.digital
|
||||
EMAIL_USERNAME: kotilion.95@gmail.com
|
||||
EMAIL_PASSWORD: vWwbCSg4bf0p
|
||||
|
||||
tty: true
|
Loading…
Reference in New Issue
Block a user