Files
nkey f71fb46eb4
All checks were successful
build-push / build (push) Successful in 25s
Add Gitea Actions CI workflow
2026-07-06 23:23:33 +09:00

23 lines
832 B
YAML

name: build-push
# 버전 브랜치(예: 2.0.3) push → arm64 빌드 → Gitea 레지스트리 push (태그 = 브랜치명 = 버전)
on:
push:
branches: ["*.*.*"] # 버전 브랜치만 (main 등은 트리거 안 함)
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to Gitea registry
run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login gitea.nkeysworld.site -u nkey --password-stdin
- name: Build & push (arm64)
run: |
TAG="${{ github.ref_name }}" # 브랜치명 = 버전
docker buildx build --platform linux/arm64 --provenance=false \
-t gitea.nkeysworld.site/nkey/news-summary-bot:${TAG} --push .
echo "pushed gitea.nkeysworld.site/nkey/news-summary-bot:${TAG}"