CI_REGISTRY とは?
CI_REGISTRY は、そのインスタンスの GitLab Container Registry のホスト名です。
CI_REGISTRY は CI_JOB_TOKEN と組み合わせることで、レジストリの認証情報を保存せずにジョブが認証してイメージをプッシュできるようにします。
ログイン
job token を使って認証します。
shell
docker login -u ${CI_REGISTRY_USER} -p ${CI_JOB_TOKEN} ${CI_REGISTRY}重要なポイント
- CI_REGISTRY はレジストリのホスト名です。
- CI_JOB_TOKEN と組み合わせてログインします。
- 認証情報を保存する必要はありません。
関連ガイド
What Is CI_REGISTRY_IMAGE?CI_REGISTRY_IMAGE is the base image path for a project in the GitLab Container Registry. Learn how to tag ima…
What Is CI_JOB_TOKEN?CI_JOB_TOKEN is a short-lived token GitLab CI jobs use to authenticate to GitLab. Learn what it can and canno…
What Is a Container Registry? Where Images LiveA container registry stores and distributes images by repository and tag. Learn how push and pull work, what…