Skip to content

Commit c2c7dd3

Browse files
committed
fix: pipelines shouldn't push images for dependabot
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.
1 parent 1534897 commit c2c7dd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/pipeline.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ jobs:
6767
docker buildx build --platform linux/arm64 -t ${{env.imageRepository}}:build-${{env.version}}-arm64v8 -f src/ES.Kubernetes.Reflector/Dockerfile src/
6868
6969
- name: tools - docker - login
70-
if: github.event_name == 'push'
70+
if: github.event_name == 'push' && github.actor != 'dependabot[bot]'
7171
uses: docker/login-action@v1
7272
with:
7373
username: ${{ secrets.ES_DOCKERHUB_USERNAME }}
7474
password: ${{ secrets.ES_DOCKERHUB_PAT }}
7575

7676

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

0 commit comments

Comments
 (0)