From 92129b33e73b39be7b250c5ca9152915b4e8d13c Mon Sep 17 00:00:00 2001 From: Larvan2 <78135608+Larvan2@users.noreply.github.com> Date: Tue, 5 Dec 2023 21:07:21 +0800 Subject: [PATCH] ci: push images to docker.io for storage conservation --- .github/workflows/build.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 34c80619..2767af8b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,7 +19,7 @@ concurrency: cancel-in-progress: true env: - REGISTRY: ghcr.io + REGISTRY: docker.io jobs: Build: permissions: write-all @@ -349,12 +349,12 @@ jobs: ls . ls bin/ - - name: login to ghcr.io + - name: login to docker REGISTRY uses: docker/login-action@v3 with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + registry: ${{ env.REGISTRY }} + username: ${{ secrets.DOCKER_HUB_USER }} + password: ${{ secrets.DOCKER_HUB_TOKEN }} # Build and push Docker image with Buildx (don't push on PR) # https://github.com/docker/build-push-action