dockerfile
Some checks failed
全局K3s部署 / deploy (push) Has been cancelled

This commit is contained in:
2026-05-23 17:41:16 +08:00
parent 72134d6004
commit b941ab73ed

View File

@@ -10,21 +10,8 @@ jobs:
K3S_HOST: ${{ secrets.K3S_HOST }}
APP_NAME: ${{ gitea.repo_name }}
steps:
- name: 拉取代码Gitea官方源
- name: 拉取代码
uses: gitea/actions/checkout@v4
with:
fetch-depth: 0 # 可选:拉取完整历史,加速后续操作
timeout-minutes: 10 # 增加超时,避免拉取中断
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ env.REGISTRY }}/${{ env.APP_NAME }}:${{ gitea.sha }}
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.APP_NAME }}:buildcache
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.APP_NAME }}:buildcache,mode=max
- name: SSH部署K3s
run: |
mkdir -p ~/.ssh