feat: add Gitea Actions workflow for Zot registry
Some checks failed
Build and Push to Zot / build-and-push (push) Has been cancelled
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:
38
.gitea/workflows/build-push.yaml
Normal file
38
.gitea/workflows/build-push.yaml
Normal 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 }}
|
||||
Reference in New Issue
Block a user