ci prod
All checks were successful
Deploy / CreateImage (push) Successful in 1m23s
Deploy / DeployService (push) Successful in 21s

This commit is contained in:
skeris 2025-02-23 21:38:23 +03:00
parent 12027b0193
commit db9cb0bfb6
3 changed files with 34 additions and 20 deletions

@ -0,0 +1,26 @@
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.4-p7
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.3
with:
runner: hubprod
actionid: ${{ gitea.run_id }}

@ -4,7 +4,6 @@ run-name: ${{ gitea.actor }} build image and push to container registry
on:
push:
branches:
- 'main'
- 'staging'
jobs:

@ -1,30 +1,19 @@
version: "3"
services:
discount-service-staging:
hostname: discount-service-staging
container_name: discount-service-staging
hostname: price
container_name: price
tty: true
image: $CI_REGISTRY_IMAGE/main:$CI_COMMIT_REF_SLUG.$CI_PIPELINE_ID
image: gitea.pena/penaside/discount/main:$GITHUB_RUN_NUMBER
environment:
- GRPC_HOST=0.0.0.0
- GPRC_PORT=9001
- HTTP_PORT=8001
- MONGO_HOST=10.8.0.8
- MONGO_HOST=localhost
- MONGO_PORT=27017
- MONGO_AUTH=discount
- MONGO_DB_NAME=discount
- MONGO_USER=$MONGO_USER-prod
- MONGO_PASSWORD=$MONGO_PASSWORD
- MONGO_USER=discount-prod
- MONGO_PASSWORD=uahgeJEGBjgtestdiscountuser
ports:
- 10.8.0.8:9001:9001
- 10.8.0.8:8001:8001
networks:
- backend_external
- default
networks:
backend_external:
driver: bridge
attachable: true
internal: true
- 10.8.0.226:9001:9001
- 10.8.0.226:8001:8001