0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

GCP Cloud Buildをつかうだけの話

Last updated at Posted at 2020-02-06

なにこれ?

すいません、Azure前提で書かれたチュートリアル的な本の内容をCGPに置き換えてやっているだけのメモです。引き返して下さい。

コンテナのビルド(docker)

Azure Container Registry でのこれは


$ az acr build --registry $ACR_NAME --image image-name:v1 .

GCP Cloud Build でこうか?


$ gcloud builds submit --tag gcr.io/$PROJECT_ID/image-name .

いけてるっぽい。


$ gcloud container images list-tags gcr.io/$PROJECT_ID/image-name
DIGEST        TAGS    TIMESTAMP
9d615e5f9700  v1.2    2020-02-06T12:11:09
f365337aa141  v1.1    2020-02-06T12:06:22
0994cf70201e  latest  2020-02-06T12:02:56

$PROJECT_ID などの変数はよしなに置換してくれるっぽい。export PROJECT_ID=$(gcloud config get-value project) とかしなくても大丈夫。

参考

Azure

GCP

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?