yveskaufmann / image-building-samples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Consume this container images

Docker CLI

  1. Create Personal Access Token with read:packages permissions.

  2. Login via: echo $CR_PAT | docker login ghcr.io -u USERNAME --password-stdin

Kubernetes

Create image pull secret:

k create -n production secret docker-registry ghcr-yveskaufmann --docker-server ghcr.io --docker-username yveskaufmann --docker-password="$(pbpaste)"

Assign the pull secret to the used service account:

kubectl patch serviceaccount default \
  -p "{\"imagePullSecrets\": [{\"name\": \"image-pull-secret\"}]}" \
  -n <your-namespace>

About


Languages

Language:TypeScript 84.4%Language:Dockerfile 15.6%