feat: add Gitea Actions workflow for Zot registry
Some checks failed
Build and Push to Zot / build-and-push (push) Has been cancelled

Replace GitHub Actions with Gitea Actions to build and push
Docker images to the Zot registry.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-10 20:41:04 +09:00
parent 3b4d837a9e
commit f4fc8253e1
4 changed files with 38 additions and 297 deletions

View File

@@ -0,0 +1,38 @@
name: Build and Push to Zot
on:
push:
branches: [main]
workflow_dispatch:
env:
REGISTRY: zot0213.kro.kr
IMAGE_NAME: jovies
jobs:
build-and-push:
runs-on: k3s-home
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Zot Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.ZOT_USERNAME }}
password: ${{ secrets.ZOT_PASSWORD }}
- name: Build and Push
uses: docker/build-push-action@v5
with:
context: ./nextjs
file: ./Dockerfile
platforms: linux/arm64
push: true
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}