prodiction ci
All checks were successful
Deploy / CreateImage (push) Successful in 1m25s
Deploy / DeployService (push) Successful in 20s

This commit is contained in:
skeris 2025-02-23 17:45:33 +03:00
parent e7ed2346dd
commit 94690c0d47
4 changed files with 39 additions and 4 deletions

@ -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:

@ -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