zinovik / storage-json-editor-api

Home Page:https://storage-json-editor-api-wniawguk3a-lm.a.run.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Storage JSON Editor API

google cloud setup

create artifact repository

gcloud services enable artifactregistry.googleapis.com
gcloud artifacts repositories create zinovik-repository --location=europe-central2 --repository-format=docker

create service account

gcloud iam service-accounts create github-actions

add roles (Service Account User, Cloud Build Service Account and Viewer) to the service account you want to use to deploy the cloud run

gcloud projects add-iam-policy-binding zinovik-project --member="serviceAccount:github-actions@zinovik-project.iam.gserviceaccount.com" --role="roles/iam.serviceAccountUser"

gcloud projects add-iam-policy-binding zinovik-project --member="serviceAccount:github-actions@zinovik-project.iam.gserviceaccount.com" --role="roles/cloudbuild.builds.builder"

gcloud projects add-iam-policy-binding zinovik-project --member="serviceAccount:github-actions@zinovik-project.iam.gserviceaccount.com" --role="roles/viewer"

creating keys for service account for github-actions GOOGLE_CLOUD_SERVICE_ACCOUNT_KEY_FILE

gcloud iam service-accounts keys create key-file.json --iam-account=github-actions@appspot.gserviceaccount.com
cat key-file.json | base64

add access to secrets

gcloud projects add-iam-policy-binding zinovik-project --member="serviceAccount:306312319198-compute@developer.gserviceaccount.com" --role="roles/secretmanager.secretAccessor"

add secrets

printf "JWT_SECRET" | gcloud secrets create storage-json-editor-api-jwt-secret --locations=europe-central2 --replication-policy="user-managed" --data-file=-

About

https://storage-json-editor-api-wniawguk3a-lm.a.run.app

License:Apache License 2.0


Languages

Language:TypeScript 98.5%Language:Dockerfile 1.1%Language:JavaScript 0.4%