Getting started with GitHub Container Registry - yunkon-kim/test-on-github-actions GitHub Wiki
Command Line Interface (CLI)์ GitHub Actions์์ GitHub Container Registry๋ฅผ ์ฌ์ฉํ๋ ๋ฐฉ๋ฒ์ ์ค๋ช ํฉ๋๋ค. ์์ฐจ์ ์ผ๋ก ๋ฐ๋ผํ ์ ์๋๋ก ๊ตฌ์ฑํ์์ต๋๋ค. GitHub Container Registry์ ๋ํ ์ค๋ช ์ ๋ค์ ๊ธ์ ์ฐธ๊ณ ํ์ธ์. ๐
-
GitHub ๋ก๊ทธ์ธ
-
์ฐ์ธก ์๋จ GitHub Profile ํด๋ฆญ(์๋ ๊ทธ๋ฆผ ์ฐธ๊ณ )
-
Settings ํด๋ฆญ
-
์ข์ธก ๋ชฉ๋ก ํ๋จ์ Developer settings ํด๋ฆญ
-
์ข์ธก ๋ชฉ๋ก ํ๋จ์ Personal access tokens ํด๋ฆญ
-
์ฐ์ธก ์๋จ์ Generate new tokens ํด๋ฆญ
-
Note ์ ๋ ฅ
-
Scope ์ ํ
-
"Select scopes"์ ์๋ Read more about OAuth scopes ๋งํฌ๋ฅผ ์ฐธ๊ณ ํ์๊ธฐ ๋ฐ๋๋๋ค.
-
GHCR์ฌ์ฉ์ ์ํด์๋ ์ฃผ๋ก
write:packages,read:packages,delete:packages๋ฅผ ์ ํํฉ๋๋ค. -
reposcope์ ๋ํด์๋ ์๋ ๋ ธํธ๋ฅผ ์ฐธ๊ณ ํ๊ธฐ ๋ฐ๋๋๋ค.(๋ชจ๋ Collaborators์ Repository ์ ๊ทผ ํ์ฉ๊ณผ ๊ด๋ จ ์์ต๋๋ค.)Note: If you select the
write:packagesscope, deselect thereposcope when creating the PAT. Adding a PAT with thereposcope as a secret in your repository allows the credential to be accessible to all collaborators in the repository. This gives unnecessary additional access when a PAT with thereposcope is used within an action. For more information on security best practices for actions, see "Security hardening for GitHub Actions." - Authenticating to GitHub Container Registry
-
-
Generate token ํด๋ฆญ
-
GitHub Container Registry ๋ก๊ทธ์ธ
docker login ghcr.io -u <YOUR_GITHUB_ID>
-
Container image ์กฐํ
docker images -a
-
์ด๋ฏธ์ง ํ๊ทธ
docker tag <YOUR_IMAGE_ID> ghcr.io/<YOUR_GITHUB_ID>/<YOUR_IMAGE_NAME>:<YOUR_TAG>
-
์ด๋ฏธ์ง ํธ์
docker push ghcr.io/<YOUR_GITHUB_ID>/<YOUR_IMAGE_NAME>:<YOUR_TAG>
To be updated
-
Organization > Packages (e.g., Packages in Cloud-Barista organization)

-
Private account > Packages