Docker
Docker Auth stuff
Warning: This section is under construction
https://docs.aws.amazon.com/AmazonECR/latest/userguide/registry_auth.html
https://cloud.google.com/artifact-registry/docs/docker/authentication#:~:text=Generate%20a%20token%20and%20authenticate%20to%20the%20repository
GCP_PROJECT=smooth-calling-235703
REPOSITORY_NAME=deno-fresh
gcloud auth print-access-token | docker login -u oauth2accesstoken \
--password-stdin https://us-east1-docker.pkg.dev/$GCP_PROJECT/$REPOSITORY_NAME
https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry
function get_ghcr_token() {
echo $(op item get "github" --format=json --fields label=CR_PAT | jq -r ".value")
}
Note: This uses the 1password cli, op
.
echo $(get_ghcr_token) | docker login ghcr.io -u thiskevinwang --password-stdin
https://github.com/users/thiskevinwang/packages/container/package/waypoint