.github/ci.yml: Don't build containers for dependabot updates

Dependabot does not have access to secrets, so skip building containers
This commit is contained in:
Manuel Rüger 2021-08-02 01:20:57 +02:00 committed by Aaron U'Ren
parent d5a18cac67
commit fc3973c843

View File

@ -74,10 +74,10 @@ jobs:
run: | run: |
make kube-router make kube-router
# Builds Container on Push Event, not run if there's a Tag Event # Builds Container only if a new push to main branch, a tag or a pull request from a source branch within the repository
ci-build-container: ci-build-container:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }} if: ${{ github.event_name != 'pull_request' || (github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]') }}
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2