v0.5.0
Build and Push Docker Image / build-and-push (push) Failing after 4m43s

This commit is contained in:
austnv
2026-06-21 15:11:39 +03:00
parent 151993fbe2
commit d009410c3f
4 changed files with 39 additions and 4 deletions
+2 -1
View File
@@ -2,4 +2,5 @@
__pycache__ __pycache__
*.pyc *.pyc
.git .git
.env .env
.gitea
+35
View File
@@ -0,0 +1,35 @@
name: Build and Push Docker Image
on:
push:
branches: [ "master" ] # Запускать при пуше в эти ветки
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
# 1. Клонируем ваш репозиторий
- name: Checkout code
uses: actions/checkout@v4
# 2. Настраиваем Docker Buildx для сборки
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
# 3. Логинимся в Container Registry Gitea
- name: Login to Gitea Container Registry
uses: docker/login-action@v3
with:
registry: git.uvpn.shop
username: ${{ gitea.repository_owner }}
password: ${{ secrets.ACCESS_TOKEN }} # Используем ваш секрет
# 4. Собираем и пушим образ
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: |
git.uvpn.shop/uvpn/backend:latest
git.uvpn.shop/uvpn/backend:${{ gitea.sha }} # Полезно для версионирования
+1 -2
View File
@@ -1,7 +1,6 @@
services: services:
backend: backend:
build: . image: git.uvpn.shop/uvpn/backend:latest
image: uvpn-backend:latest
container_name: uvpn-backend container_name: uvpn-backend
volumes: volumes:
- /opt/remnawave-minishop/data/tariffs.json:/app/data/tariffs.json - /opt/remnawave-minishop/data/tariffs.json:/app/data/tariffs.json
+1 -1
View File
@@ -1,6 +1,6 @@
[project] [project]
name = "uvpn-backend" name = "uvpn-backend"
version = "0.4.0" version = "0.5.0"
description = "FastAPI backend with Docker for uvpn.shop" description = "FastAPI backend with Docker for uvpn.shop"
readme = "README.md" readme = "README.md"
requires-python = ">=3.12" requires-python = ">=3.12"