ci: push images to docker.io for storage conservation

This commit is contained in:
Larvan2 2023-12-05 21:07:21 +08:00
parent ee6b974c18
commit 92129b33e7

View file

@ -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