push-to-ghcr icon indicating copy to clipboard operation
push-to-ghcr copied to clipboard

Error when using Github Actions and building with Docker 23 persists

Open thomaspaulin opened this issue 2 years ago • 3 comments

In #29 @tobiasc laid out screenshots and information demonstrating an error when running the action in Docker 23. #30 was intended to fix this and has since been merged to master, however, when using master per the README I continue to experience this error.

I tried using v13, the tag associated with @tobiasc 's fix just in case but found that did not work either.

  docker_publish:
    runs-on: "ubuntu-20.04"
    steps:
      - name: Build and publish a Docker image for ${{ github.repository }}
        uses: macbre/push-to-ghcr@v13
        with:
          image_name: ${{ github.repository }}
          image_tag: $(date +%s)
          github_token: ${{ secrets.GITHUB_TOKEN }}

push-to-ghcr-fail

thomaspaulin avatar Aug 22 '23 08:08 thomaspaulin

Interesting, docker 24.x does not seem to trigger that issue:

Screenshot 2023-09-05 at 17 20 24

macbre avatar Sep 05 '23 16:09 macbre

@thomaspaulin - can you try setting runs-on: "ubuntu-20.04" in your action and see if that "solves" the issue?

Also, can you please try re-running the action using the master version (with the docker build command being logged thanks to #35)?

macbre avatar Sep 05 '23 16:09 macbre

Something is fishy with Ubuntu's package with Docker. Running chown inside the Dockerfile does not work (https://github.com/moby/moby/issues/46161).

macbre avatar Sep 06 '23 14:09 macbre