diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 473f202..e6e612a 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -33,6 +33,10 @@ jobs: - name: Checkout uses: http://git.des8.com/docker/checkout@main + with: + username: ${{ secrets.HUB_USERNAME }} + password: ${{ secrets.HUB_PASSWORD }} + repository: heibai2006/webman-docker - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." - name: Set up Docker BuildX @@ -51,6 +55,9 @@ jobs: # 必需有且置空,查看官方文档解释:https://docs.gitea.com/zh-cn/next/usage/actions/comparison?_highlight=build&_highlight=push&_highlight=action#dockerbuild-push-actionv4 ACTIONS_RUNTIME_TOKEN: '' with: + username: ${{ secrets.HUB_USERNAME }} + password: ${{ secrets.HUB_PASSWORD }} + repository: heibai2006/webman-docker context: . file: ./Dockerfile build-args: |