Files
UfaHack2024/.gitea/workflows/docker-build.yml
DrHo1y f7391a6971
Some checks failed
Build and push Docker image (Gitea) / build (push) Failing after 2m12s
feat: add Docker setup and CI workflows for headless server
2026-09-01 19:55:28 +07:00

29 lines
791 B
YAML

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.