There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

GitHub PAT in docker-compose file?

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://[email protected]/username/repo.git#branch’ is what I’m trying to use, but I get:

<pre style="background-color:#ffffff;">
<span style="color:#323232;">failed to solve: failed to read downloaded context: failed to load cache key: invalid response status 404
</span>

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

TheButtonJustSpins OP ,

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.

terribleplan ,
@terribleplan@lemmy.nrd.li avatar

Pretty sure it needs to be https://$user:[email protected]/username/repo.git#branch.

TheButtonJustSpins OP ,

Same behavior if I add the username: before the PAT.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • [email protected]
  • lifeLocal
  • goranko
  • All magazines