fix(ci): 移除 Docker Build 阶段,Gitea 不支持 GHA 缓存
All checks were successful
GoLoom CI / Lint (push) Successful in 1m21s
GoLoom CI / Test (push) Successful in 5s
GoLoom CI / Build (push) Successful in 7s

This commit is contained in:
hhs
2026-06-10 11:17:58 +08:00
parent a70f151615
commit 1cfebd37be

View File

@@ -93,30 +93,20 @@ jobs:
name: goloom-server
path: goloom-server
docker:
name: Docker Build
runs-on: ubuntu-latest
needs: [build]
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Download binary
uses: actions/download-artifact@v3
with:
name: goloom-server
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Docker image
uses: docker/build-push-action@v5
with:
context: .
push: false
tags: |
goloom:latest
goloom:${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max
# TODO: 添加 Dockerfile 后启用
# docker:
# name: Docker Build
# runs-on: ubuntu-latest
# needs: [build]
# if: github.event_name == 'push' && github.ref == 'refs/heads/main'
# steps:
# - name: Checkout code
# uses: actions/checkout@v4
# - name: Download binary
# uses: actions/download-artifact@v3
# with:
# name: goloom-server
# - name: Build Docker image
# run: |
# chmod +x goloom-server
# docker build -t goloom:latest -t goloom:${{ github.sha }} .