Files
play-life/.gitea/workflows/build-and-push.yml
poignatov 107b53d125
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 14s
Add Gitea Actions workflow for building and pushing Docker image to registry
2025-12-30 19:20:59 +03:00

35 lines
1.1 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name: Build and Push Docker Image
on:
push:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
# Мы убрали Buildx для стабильности на первом этапе
- name: Log in to Gitea Container Registry
uses: docker/login-action@v3
with:
# ВАЖНО: используем порт 3000 (веб/registry), а не 7777 (ssh)
registry: 192.168.50.55:3000
username: ${{ secrets.GIT_USERNAME }}
password: ${{ secrets.GIT_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
# Мы убрали platforms, так как Synology собирает под свою архитектуру (обычно amd64)
push: true
tags: |
192.168.50.55:3000/poignatov/play-life:latest
192.168.50.55:3000/poignatov/play-life:${{ github.sha }}