Initial commit of gitea-ai-webhook bot with CI/CD

This commit is contained in:
Ben
2026-01-01 04:39:29 +00:00
commit c8ea6d7288
6 changed files with 239 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
name: Build and Push Docker Image
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Gitea Container Registry
uses: docker/login-action@v2
with:
registry: gitea.ext.ben.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: gitea.ext.ben.io/${{ github.repository }}:latest
cache-from: type=gha
cache-to: type=gha,mode=max