Attempt to fix CI by removing checkout step

This commit is contained in:
GuanYuankai 2025-11-11 10:46:37 +08:00
parent b485d77bbf
commit b2b4de3561
1 changed files with 3 additions and 7 deletions

View File

@ -1,18 +1,16 @@
name: Build and Push Edge Proxy Image name: Build and Push Edge Proxy Image
on: on:
create: # 当有新东西被创建时触发 create:
tags: # 仅限新标签 tags:
- 'v*.*.*' # 匹配 v1.0.0, v1.1.0 等 - 'v*.*.*'
jobs: jobs:
build-and-push: build-and-push:
# (关键) 确保这个标签与您在RK3588上注册Runner时设置的标签一致
runs-on: arm64 runs-on: arm64
steps: steps:
- name: Checkout Repository - name: Checkout Repository
uses: actions/checkout@v3
- name: Login to Gitea Container Registry - name: Login to Gitea Container Registry
run: | run: |
@ -20,10 +18,8 @@ jobs:
- name: Build and Push Image - name: Build and Push Image
run: | run: |
# 从标签名 (e.g., "v1.0.0") 中提取版本号
VERSION=$(echo ${{ gitea.ref_name }} | sed 's/v//') VERSION=$(echo ${{ gitea.ref_name }} | sed 's/v//')
# (!!重要!!) 请将 "guanyuankai" 替换为您的Gitea用户名或组织名
IMAGE_PATH="http://192.168.0.75:3000/guanyuankai/bonus-edge-proxy:${VERSION}" IMAGE_PATH="http://192.168.0.75:3000/guanyuankai/bonus-edge-proxy:${VERSION}"
LATEST_PATH="http://192.168.0.75:3000/guanyuankai/bonus-edge-proxy:latest" LATEST_PATH="http://192.168.0.75:3000/guanyuankai/bonus-edge-proxy:latest"