Skip to content

Commit c97074b

Browse files
committed
ci(actions): enhance Docker build process with buildx setup
- Adds setup for Docker Buildx to enable multi-platform builds. - Ensures Docker login step only runs for relevant GitHub events.
1 parent cde2d68 commit c97074b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/main.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,16 @@ jobs:
5555
path: .artifacts/kubectl
5656

5757
- name: tools - docker - login
58-
if: github.event_name == 'push' && github.actor != 'dependabot[bot]'
5958
uses: docker/login-action@v3
6059
with:
6160
username: ${{ secrets.ES_DOCKERHUB_USERNAME }}
6261
password: ${{ secrets.ES_DOCKERHUB_PAT }}
6362

63+
- name: docker - setup - buildx
64+
uses: docker/setup-buildx-action@v3
65+
with:
66+
driver: docker-container # REQUIRED for multi-platform builds
67+
6468
- name: docker - build and push
6569
uses: docker/build-push-action@v5
6670
with:

0 commit comments

Comments
 (0)