diff --git a/.gitea/workflows/build_docker.yaml b/.gitea/workflows/build_docker.yaml index 57498d4..7024a25 100644 --- a/.gitea/workflows/build_docker.yaml +++ b/.gitea/workflows/build_docker.yaml @@ -52,14 +52,14 @@ jobs: echo "++ container ${{ steps.registry.outputs.registry }}/${{ env.GITHUB_REPOSITORY }}:${{ env.VERSION }}" echo "++ gitea server/domain ${{ gitea.server }}/${{ gitea.domain }}:latest" echo "++ github token ${{ gitea.TOKEN }}" - echo "++ runtime token ${{ actions.runtime.token }} or ${{ env.ACTIONS_RUNTIME_TOKEN }} or ${{ actions.runtime_token }}" + echo "++ runtime token ${{ env.ACTIONS_RUNTIME_TOKEN }}" - - name: Build - run: | - set -x - if [ -f init ]; then chmod 500 init; fi - docker build ${HTTP_PROXY:+--build-arg HTTP_PROXY=${HTTP_PROXY}} -t ${{ steps.registry.outputs.registry }}/${{ env.GITHUB_REPOSITORY }}:${{ env.VERSION }} - docker push ${{ steps.registry.outputs.registry }}/${{ env.GITHUB_REPOSITORY }}:${{ env.VERSION }} + #- name: Build + # run: | + # set -x + # if [ -f init ]; then chmod 500 init; fi + # docker build ${HTTP_PROXY:+--build-arg HTTP_PROXY=${HTTP_PROXY}} -t ${{ steps.registry.outputs.registry }}/${{ env.GITHUB_REPOSITORY }}:${{ env.VERSION }} + # docker push ${{ steps.registry.outputs.registry }}/${{ env.GITHUB_REPOSITORY }}:${{ env.VERSION }} # name: Set up Docker Buildx # uses: https://github.com/docker/setup-buildx-action@v3 @@ -71,6 +71,8 @@ jobs: - name: Build and push Docker image uses: docker/build-push-action@v5 + env: + GITHUB_AUTH_TOKEN: ${{ env.ACTIONS_RUNTIME_TOKEN }} with: context: . file: ./Dockerfile