Skip to content

Commit d7bd1c9

Browse files
committed
ci(pipeline): enhance Docker login and setup process
- Adds steps for logging into GitHub Container Registry and Docker Hub. - Integrates Docker Buildx setup to improve image building capabilities.
1 parent 695c780 commit d7bd1c9

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/pipeline.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,23 @@ jobs:
293293
--config /dev/null:application/vnd.cncf.artifacthub.config.v1+yaml \
294294
.artifacts/helm/artifacthub-repo.yaml:application/vnd.cncf.artifacthub.repository-metadata.layer.v1.yaml
295295
296+
- name: tools - docker - login ghcr.io
297+
uses: docker/login-action@v3
298+
with:
299+
registry: ghcr.io
300+
username: ${{ github.actor }}
301+
password: ${{ secrets.ES_GITHUB_PAT }}
302+
303+
- name: tools - docker - login docker.io
304+
uses: docker/login-action@v3
305+
with:
306+
registry: docker.io
307+
username: ${{ secrets.ES_DOCKERHUB_USERNAME }}
308+
password: ${{ secrets.ES_DOCKERHUB_PAT }}
309+
310+
- name: tools - docker - setup buildx
311+
uses: docker/setup-buildx-action@v3
312+
296313
- name: docker - tag and push - latest
297314
run: |
298315
docker buildx imagetools create \

0 commit comments

Comments
 (0)