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