1
0
mirror of https://github.com/H0llyW00dzZ/My-RESTAPIs-Boilerplate.git synced 2025-02-06 09:26:02 +00:00
My-RESTAPIs-Boilerplate/gcloud-builds.yaml
H0llyW00dzZ eddb5ba9d2
Docs [GCloud] [Remote Builds] Update Documentation (#949)
- [+] chore(gcloud-builds.yaml): update comment to include public Artifact Registry support
2024-09-21 21:47:43 +07:00

16 lines
740 B
YAML

# Google Cloud remote build for this repository to a private or public Artifact Registry that can be used directly in GKE
#
# Usage:
# - Replace "<YOUR_REPO>/<IMAGE_NAME>:<TAG_VERSION>"
# Then enter the following command in the terminal where your gcloud-cli is installed: "gcloud builds submit --config gcloud-builds.yaml ."
#
# Note: Make sure your gcloud-cli, through your account permissions, has permission for these remote builds.
#
# List of permissions that need to be granted:
# - https://cloud.google.com/artifact-registry
# - https://cloud.google.com/build
steps:
- name: "gcr.io/cloud-builders/docker"
args: ["build", "-t", "<YOUR_REPO>/<IMAGE_NAME>:<TAG_VERSION>", "."]
images: ["<YOUR_REPO>/<IMAGE_NAME>:<TAG_VERSION>"]