From 72154e75b985f080cd507b1548eefabe0438f3f8 Mon Sep 17 00:00:00 2001 From: Suryansh Goyal Date: Mon, 20 Apr 2026 17:01:41 -0400 Subject: [PATCH 1/2] Added gcp commands --- gcp/useful-commands.md | 45 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 gcp/useful-commands.md diff --git a/gcp/useful-commands.md b/gcp/useful-commands.md new file mode 100644 index 0000000..83bf56c --- /dev/null +++ b/gcp/useful-commands.md @@ -0,0 +1,45 @@ +# Useful Commands for Google Cloud Platform + +## Download gcloud cli +Download gcloud cli using following link, based on your OS: https://docs.cloud.google.com/sdk/docs/install-sdk + +## Login to GCP +```bash +gcloud init +gcloud auth login +``` + +## Authorize Local Docker to push to GCP's Artifact Registry +```bash +gcloud auth configure-docker \ + northamerica-northeast1-docker.pkg.dev +``` + +## Docker Commands + +### Tagging Images +To tag a specific local image: +```bash +docker tag -docker.pkg.dev/// +``` + +- `` can be same as `` +- `-docker.pkg.dev///` + +Example Tag command: +```bash +docker tag surigo/anizenith:latest northamerica-northeast1-docker.pkg.dev/anizenith/anizenith-repo/anizenith:latest +``` + +### Pushing Images +To push a tagged image: +```bash +docker push +``` + +- `` is the same as `-docker.pkg.dev///` + +Example Push command +```bash +docker push northamerica-northeast1-docker.pkg.dev/anizenith/anizenith-repo/anizenith:latest +``` \ No newline at end of file From 07d868a162f69b7bb4bf81a0d37c09d44198dba6 Mon Sep 17 00:00:00 2001 From: Suryansh Goyal Date: Tue, 28 Apr 2026 15:39:38 -0400 Subject: [PATCH 2/2] Moving gcp commands under ops folder --- {gcp => ops/gcp}/useful-commands.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {gcp => ops/gcp}/useful-commands.md (100%) diff --git a/gcp/useful-commands.md b/ops/gcp/useful-commands.md similarity index 100% rename from gcp/useful-commands.md rename to ops/gcp/useful-commands.md