update build yaml
All checks were successful
Build NGINX on Ubuntu / build-and-deploy (push) Successful in 2m39s
All checks were successful
Build NGINX on Ubuntu / build-and-deploy (push) Successful in 2m39s
This commit is contained in:
parent
858c009a81
commit
4ae6507af9
@ -14,7 +14,7 @@ defaults:
|
|||||||
shell: 'bash -Eeo pipefail -x {0}'
|
shell: 'bash -Eeo pipefail -x {0}'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-deploy:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@ -174,15 +174,6 @@ jobs:
|
|||||||
docker rmi ${{ secrets.HARBOR_REGISTRY }}/test/nginx:${{ github.sha }} || true
|
docker rmi ${{ secrets.HARBOR_REGISTRY }}/test/nginx:${{ github.sha }} || true
|
||||||
docker rmi ${{ secrets.HARBOR_REGISTRY }}/test/nginx:latest || 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
|
- name: 安装 kubectl
|
||||||
run: |
|
run: |
|
||||||
echo "当前工作目录: $(pwd)"
|
echo "当前工作目录: $(pwd)"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user