We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3591952 commit 73ee143Copy full SHA for 73ee143
1 file changed
.github/workflows/ci-build-deploy.yml
@@ -21,6 +21,7 @@ jobs:
21
run: python -m pytest -q samples/book-app-project/tests
22
23
build-and-push:
24
+ if: github.event_name == 'push'
25
needs: test
26
runs-on: ubuntu-latest
27
permissions:
@@ -50,7 +51,7 @@ jobs:
50
51
deploy:
52
needs: build-and-push
53
- if: ${{ secrets.KUBE_CONFIG != '' }}
54
+ if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/heads/main') && secrets.KUBE_CONFIG != '' }}
55
steps:
56
- uses: actions/checkout@v4
57
- name: Install kubectl
0 commit comments