Skip to content

Commit

Permalink
fix: pipelines shouldn't push images for dependabot
Browse files Browse the repository at this point in the history
The commit fixes an issue where the pipeline was pushing images for dependabot. The changes ensure that the pipeline only pushes images when the event is a push and the actor is not dependabot.
  • Loading branch information
winromulus committed Oct 2, 2023
1 parent 1534897 commit c2c7dd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@ jobs:
docker buildx build --platform linux/arm64 -t ${{env.imageRepository}}:build-${{env.version}}-arm64v8 -f src/ES.Kubernetes.Reflector/Dockerfile src/
- name: tools - docker - login
if: github.event_name == 'push'
if: github.event_name == 'push' && github.actor != 'dependabot[bot]'
uses: docker/login-action@v1
with:
username: ${{ secrets.ES_DOCKERHUB_USERNAME }}
password: ${{ secrets.ES_DOCKERHUB_PAT }}


- name: "docker - build and publish"
if: github.event_name == 'push'
if: github.event_name == 'push' && github.actor != 'dependabot[bot]'
run: |
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker buildx create --name builder --driver docker-container --use
Expand Down

0 comments on commit c2c7dd3

Please sign in to comment.