Add Gitea Actions CI workflow
All checks were successful
build-push / build (push) Successful in 25s
All checks were successful
build-push / build (push) Successful in 25s
This commit is contained in:
22
.gitea/workflows/build.yml
Normal file
22
.gitea/workflows/build.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
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}"
|
||||
Reference in New Issue
Block a user