Skip to content

Commit ce11f69

Browse files
committed
ci(workflow): update Docker-related actions for pushes only
- Modified Docker login and buildx push to only execute on push events, excluding Dependabot actions. - Ensures smoother CI by preventing unnecessary Docker operations for dependency updates.
1 parent 48d1677 commit ce11f69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/main.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ jobs:
5555
path: .artifacts/kubectl
5656

5757
- name: tools - docker - login
58+
if: github.event_name == 'push' && github.actor != 'dependabot[bot]'
5859
uses: docker/login-action@v3
5960
with:
6061
username: ${{ secrets.ES_DOCKERHUB_USERNAME }}
@@ -64,7 +65,6 @@ jobs:
6465
run: |
6566
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
6667
67-
6868
- name: docker - setup - buildx
6969
uses: docker/setup-buildx-action@v3
7070
with:
@@ -75,7 +75,7 @@ jobs:
7575
with:
7676
context: src/
7777
file: src/ES.Kubernetes.Reflector/Dockerfile
78-
push: true
78+
push: ${{ github.event_name == 'push' && github.actor != 'dependabot[bot]' }}
7979
provenance: false
8080
platforms: linux/amd64,linux/arm/v7,linux/arm64
8181
tags: ${{ env.imageRepository }}:build-${{ env.version }}

0 commit comments

Comments
 (0)