release: v 0.1 release

This commit is contained in:
itqop 2025-10-18 16:30:11 +03:00
parent 474303407e
commit 92800255e4
2 changed files with 55 additions and 1 deletions

View File

@ -0,0 +1,37 @@
name: Build and Push Docker Image
run-name: Building Docker image 🚀
on:
push:
branches:
- main
jobs:
build-and-push:
if: contains(github.event.head_commit.message, 'release')
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
push: true
tags: |
itqop/hubgw:latest
itqop/hubgw:${{ gitea.sha }}
cache-from: type=registry,ref=itqop/hubgw:buildcache
cache-to: type=registry,ref=itqop/hubgw:buildcache,mode=max

View File

@ -5,8 +5,25 @@ services:
- "8087:8080"
environment:
- PYTHONPATH=/app/src
- APP__ENV=prod
- APP__HOST=0.0.0.0
- APP__PORT=8080
- APP__LOG_LEVEL=INFO
- DATABASE__HOST=localhost
- DATABASE__PORT=5432
- DATABASE__USER=hubgw_user
- DATABASE__PASSWORD=your_secure_password
- DATABASE__DATABASE=hubgw
- DATABASE__AZURIOM_DATABASE=azuriom
- DATABASE__POOL_SIZE=10
- DATABASE__MAX_OVERFLOW=10
- DATABASE__ECHO=false
- SECURITY__API_KEY=your_very_secure_api_key_here
- SECURITY__RATE_LIMIT_PER_MIN=100
volumes:
# Монтируем логи если нужно
- ./logs:/app/logs
restart: unless-stopped
healthcheck: