-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
コンテナイメージのビルド & 保管をGitHub Container Registryにする #77
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
セルフレビューした
- name: Prepare image tags | ||
run: | | ||
echo "FORMATTED_BRANCH_NAME=$(echo ${{ github.ref_name }} | sed -e 's/\//-/g' )" >> $GITHUB_ENV |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
イメージタグにブランチ名を使うようにしてる。
んだけど、イメージタグには /
が使えないので -
に置き換えておく
(ブランチ名に /
を使うなという話でもある)
ghcr.io/misskeyio/misskey:latest | ||
ghcr.io/misskeyio/misskey:${{ env.FORMATTED_BRANCH_NAME }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
latest
と一緒にブランチ名をタグ付けしておく (ブランチ名 or タグ付けしていればタグ名)
jobs: | ||
push_to_registry: | ||
name: Push Docker image to GitHub Container Registry | ||
runs-on: ubuntu-22.04 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
latest
を使うとlatestで使用されるバージョンが変わると厄介するかもしれないので。
What
Why
Additional info (optional)