GITHUB_REPOSITORY_OWNER とは?
GITHUB_REPOSITORY_OWNER はリポジトリを所有するアカウント(ユーザーまたは組織)です。
owner だけが必要な場合 - registry の namespace や組織レベルの API 呼び出しのために - GITHUB_REPOSITORY_OWNER を使えば GITHUB_REPOSITORY を分割する手間が省けます。
例
owner を registry の namespace として使用します。
shell
echo "ghcr.io/${GITHUB_REPOSITORY_OWNER}/app"重要なポイント
- GITHUB_REPOSITORY_OWNER は所有するユーザー/組織です。
- registry の namespace に便利です。
- GITHUB_REPOSITORY から導出されます。
関連ガイド
What Is GITHUB_REPOSITORY?GITHUB_REPOSITORY is the owner/name slug of the repo running a GitHub Actions workflow, like octocat/hello-wo…
What Is GHCR? GitHub Container Registry ExplainedGHCR is GitHub Container Registry, hosting images under ghcr.io tied to GitHub identities. Learn how auth, pe…
What Is GITHUB_ACTOR?GITHUB_ACTOR is the username that triggered a GitHub Actions workflow run. Learn how it is set and used for a…