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 name: goloom-server
path: goloom-server path: goloom-server
docker: # TODO: 添加 Dockerfile 后启用
name: Docker Build # docker:
runs-on: ubuntu-latest # name: Docker Build
needs: [build] # runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main' # needs: [build]
steps: # if: github.event_name == 'push' && github.ref == 'refs/heads/main'
- name: Checkout code # steps:
uses: actions/checkout@v4 # - name: Checkout code
# uses: actions/checkout@v4
- name: Download binary # - name: Download binary
uses: actions/download-artifact@v3 # uses: actions/download-artifact@v3
with: # with:
name: goloom-server # name: goloom-server
# - name: Build Docker image
- name: Set up Docker Buildx # run: |
uses: docker/setup-buildx-action@v3 # chmod +x goloom-server
# docker build -t goloom:latest -t goloom:${{ github.sha }} .
- 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