fix(ci): 移除 Docker Build 阶段,Gitea 不支持 GHA 缓存
This commit is contained in:
@@ -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 }} .
|
||||
|
||||
Reference in New Issue
Block a user