Skip to content

Instantly share code, notes, and snippets.

View otoyo's full-sized avatar
🦙

Hiroki Toyokawa otoyo

🦙
View GitHub Profile
@otoyo
otoyo / cloudbuild.yaml
Created March 13, 2022 04:49
Delete old Docker images in Artifact Registry from Cloud Build
steps:
- id: 'Delete old Docker images'
name: 'gcr.io/google.com/cloudsdktool/cloud-sdk'
entrypoint: bash
args:
- -ceux
- |
gcloud artifacts docker images list ${_IMAGE_NAME} --include-tags --filter="TAGS!=latest" --format="value(DIGEST)" | xargs -n1 -I{} gcloud artifacts docker images delete --quiet --async ${_IMAGE_NAME}@{}
@otoyo
otoyo / how-to-import-easy-notion-blog.md
Created December 17, 2021 08:12
easy-notion-blogの機能追加を自分のリポジトリに取り込む方法

easy-notion-blog で追加された機能を、フォークした自分のリポジトリに取り込む方法を説明します。

ここでは下記の Pull Requests (PR) を例に説明していきます。

easy-notion-blog をリモートリポジトリに登録する

easy-notion-blog 本家で追加された変更を取り込むには、変更の取り込み元となる easy-notion-blog 本家の場所を Git に教える必要があります。この操作は一度だけで OK です。