prodiction ci
This commit is contained in:
parent
e7ed2346dd
commit
94690c0d47
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:
|
15
deployments/main/docker-compose.yaml
Normal file
15
deployments/main/docker-compose.yaml
Normal file
@ -0,0 +1,15 @@
|
||||
services:
|
||||
cbrfworker-app-staging:
|
||||
image: gitea.pena/penaside/cbrfworker/main:$GITHUB_RUN_NUMBER
|
||||
tty: true
|
||||
environment:
|
||||
- IS_PRODUCTION=false
|
||||
- DEVELOPMENT=true
|
||||
- APP_NAME=croupierWorkerQuotes
|
||||
- APP_ADDR=0.0.0.0:3131
|
||||
- DATABASE_URI=$DATABASE_URI_PROD
|
||||
- DATABASE_URI=mongodb://cbrfuser:uahgeJEGBjgtesdiscountuser@localhost:27017/cbrf?authSource=cbrf&authMechanism=SCRAM-SHA-1
|
||||
- DATABASE_TABLE=cbrf
|
||||
- COLLECTION_NAME=quote
|
||||
ports:
|
||||
- 10.8.0.226:3131:3131
|
@ -1,8 +1,6 @@
|
||||
version: "3.3"
|
||||
|
||||
services:
|
||||
cbrfworker-app-staging:
|
||||
image: gitea.pena:3000/penaside/cbrfworker/staging:$GITHUB_RUN_NUMBER
|
||||
image: gitea.pena/penaside/cbrfworker/staging:$GITHUB_RUN_NUMBER
|
||||
tty: true
|
||||
environment:
|
||||
- IS_PRODUCTION=false
|
||||
|
Loading…
Reference in New Issue
Block a user