From 8a81b08c2d24e56698898888631074e472ef0ab5 Mon Sep 17 00:00:00 2001 From: duanmengkk Date: Wed, 13 Nov 2024 14:51:57 +0800 Subject: [PATCH] fix ci for release multi-platform images Signed-off-by: duanmengkk --- .github/workflows/dev_images.yml | 8 +++----- .github/workflows/release_images.yml | 8 +++----- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/dev_images.yml b/.github/workflows/dev_images.yml index 01b54bc92..8de8c702c 100644 --- a/.github/workflows/dev_images.yml +++ b/.github/workflows/dev_images.yml @@ -20,11 +20,9 @@ jobs: uses: docker/setup-qemu-action@v3 - name: install Buildx uses: docker/setup-buildx-action@v3 - - name: login to DockerHub - uses: docker/login-action@v3 - with: - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + - name: Login registry + run: | + echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin - name: Push images env: ON_PLUGINS: true diff --git a/.github/workflows/release_images.yml b/.github/workflows/release_images.yml index 837aa26b3..6371ee6f4 100644 --- a/.github/workflows/release_images.yml +++ b/.github/workflows/release_images.yml @@ -20,11 +20,9 @@ jobs: uses: docker/setup-qemu-action@v3 - name: install Buildx uses: docker/setup-buildx-action@v3 - - name: login to DockerHub - uses: docker/login-action@v3 - with: - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + - name: Login registry + run: | + echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin - name: Push images env: ON_PLUGINS: true