feat: add Docker setup and CI workflows for headless server
Some checks failed
Build and push Docker image (Gitea) / build (push) Failing after 2m12s

This commit is contained in:
2026-09-01 19:55:28 +07:00
parent 4af0dd0685
commit f7391a6971
10 changed files with 351 additions and 1 deletions

View File

@@ -0,0 +1,29 @@
name: Build and push Docker image (Gitea)
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
registry: git.byte-mate.ru
username: ${{ gitea.actor }}
password: ${{ secrets.GITEA_TOKEN }}
- uses: docker/build-push-action@v6
with:
context: .
push: true
tags: |
git.byte-mate.ru/Coder/UfaHack2024:latest
git.byte-mate.ru/Coder/UfaHack2024:${{ gitea.sha }}
# Notes:
# - Create the GITEA_TOKEN secret in the Gitea repository settings.
# - A Gitea Actions runner must be registered on the server for this
# workflow to run.