main deployments
This commit is contained in:
parent
94a77d1918
commit
fe313c5ef6
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: https://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: https://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:
|
8
deployments/main/docker-compose.yaml
Normal file
8
deployments/main/docker-compose.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
services:
|
||||
templategenworker:
|
||||
restart: unless-stopped
|
||||
image: gitea.pena/penaside/docxtemplaterworker/main:$GITHUB_RUN_NUMBER
|
||||
tty: true
|
||||
environment:
|
||||
MONGO_URL: mongodb://templategen:54143ffdd9304865586e5cf1@localhost:27017/?authSource=templategen
|
||||
PENADISK_URL: http://localhost:8011/
|
Loading…
Reference in New Issue
Block a user