I used to have this working, but I haven’t used it in a while and had to rebuild the server in between, and now it doesn’t. How do you set up the PAT in the URL in order to access private repos when building using docker compose?

build: 'https://PAT@github.com/username/repo.git#branch' is what I’m trying to use, but I get:

failed to solve: failed to read downloaded context: failed to load cache key: invalid response status 404

EDIT: See comment for (silly) resolution. The above works.

  • TheButtonJustSpinsOP
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    I’m an idiot and can’t read. There are two services in the compose file and it was the other one that was throwing the error, and that was because I forgot the .git.