Update master.yml

This commit is contained in:
xiaoliutral 2026-09-03 11:16:09 +08:00 committed by GitHub
parent 0442e335f6
commit bbe9a3a9a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,7 +1,11 @@
# 复制到 itfx: .github/workflows/deploy.yml
#
# Secrets: SSH_K3S_HOST / SSH_K3S_USERNAME / SSH_K3S_PASSWORD
# 集群一次: GIT_TOKEN=... TCR_USERNAME=... TCR_PASSWORD=... ./scripts/16-setup-kaniko.sh
# 集群:
# GIT_TOKEN=... TCR_USERNAME=... TCR_PASSWORD=... ./scripts/16-setup-kaniko.sh
# ./scripts/17-test-github-access.sh # 选 GIT_FETCH_MODE / KANIKO_NODE_ROLE
#
# 构建全程在集群 Pod 内完成git + kanikoActions 只 SSH 触发并跟日志
#
name: Build and Deploy
@ -26,7 +30,7 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Show image tag
- name: Show image
id: info
run: |
TAG="${{ github.sha }}"
@ -35,7 +39,6 @@ jobs:
echo "image=${IMG}" >> "$GITHUB_OUTPUT"
echo "Will build: ${IMG}"
# 最长一步git 拉代码 + Kaniko 构建推 TCR日志实时跟出来
- name: Build image (Kaniko logs)
uses: appleboy/ssh-action@v1.2.0
with: