This is an automated email from the ASF dual-hosted git repository.

adoroszlai pushed a commit to branch test-HDDS-8569
in repository https://gitbox.apache.org/repos/asf/ozone-docker-runner.git


The following commit(s) were added to refs/heads/test-HDDS-8569 by this push:
     new 5788f33  use docker/login-action
5788f33 is described below

commit 5788f33d3a29dae9ddb2d4db318bb7a369fcb4ad
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Sun Nov 3 08:08:39 2024 +0100

    use docker/login-action
---
 .github/workflows/build.yaml | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index c38cb76..a00ebcd 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -63,10 +63,13 @@ jobs:
         if: ${{ steps.pull.outputs.success != 'true' }}
         uses: docker/setup-buildx-action@v3
 
-      - name: Login to ghcr.io
+      - name: Login to GitHub Container Registry
         if: ${{ github.event_name == 'push' }}
-        run: |
-          echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ 
github.actor }} --password-stdin
+        uses: docker/login-action@v3
+        with:
+          registry: ghcr.io
+          username: ${{ github.repository_owner }}
+          password: ${{ secrets.GITHUB_TOKEN }}
 
       - name: Build and push multi-platform image
         if: ${{ steps.pull.outputs.success != 'true' }}


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to