Support pushing to Docker Hub (#607)

pull/608/head
John Niang 2022-09-08 15:13:37 +08:00 committed by GitHub
parent fdc60e9c40
commit e5dd8cc89c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -94,4 +94,6 @@ jobs:
with:
image-name: admin-dev
ghcr-token: ${{ secrets.GHCR_TOKEN }}
dockerhub-user: ${{ secrets.DOCKER_USERNAME }}
dockerhub-token: ${{ secrets.DOCKER_TOKEN }}
push: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/next' }} # we only push to GHCR if the push is to the next branch