ci: configure automated docker build workflow via Gitea Actions and repository hygiene
Build and Push Docker Image / build-and-push (push) Failing after 55s

This commit is contained in:
2026-08-21 16:36:38 +09:00
parent d64b3c72b7
commit 364ff4c4e8
4 changed files with 53 additions and 7 deletions
+32
View File
@@ -0,0 +1,32 @@
name: Build and Push Docker Image
on:
push:
branches:
- master
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.CI_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Gitea Container Registry
uses: docker/login-action@v3
with:
registry: ${{ secrets.DOCKER_REGISTRY || 'gitea.example.com' }}
username: ${{ gitea.actor }}
password: ${{ secrets.CI_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ secrets.DOCKER_REGISTRY || 'gitea.example.com' }}/${{ gitea.repository }}:latest