update build yaml
All checks were successful
Build NGINX on Ubuntu / build-and-deploy (push) Successful in 2m39s

This commit is contained in:
huangzhiqiang 2025-06-09 18:43:06 +08:00
parent 858c009a81
commit 4ae6507af9

View File

@ -14,7 +14,7 @@ defaults:
shell: 'bash -Eeo pipefail -x {0}'
jobs:
build-and-push:
build-and-deploy:
runs-on: ubuntu-22.04
steps:
@ -174,15 +174,6 @@ jobs:
docker rmi ${{ secrets.HARBOR_REGISTRY }}/test/nginx:${{ github.sha }} || true
docker rmi ${{ secrets.HARBOR_REGISTRY }}/test/nginx:latest || true
deploy-to-kubernetes:
needs: build-and-push
runs-on: ubuntu-22.04
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
steps:
- name: 检出代码
uses: actions/checkout@v4
- name: 安装 kubectl
run: |
echo "当前工作目录: $(pwd)"