Category : gcloud

I know there are several posts/questions like this but nothing answered it. I am using cloudbuild.yaml and reading a secret value from the secret manager and passing it like this. YAML file entrypoint: /bin/sh args: [‘-c’, ‘docker build -t gcr.io/$PROJECT_ID/portal:$SHORT_SHA-${_TARGET} –build-arg token=$$TOKEN . ‘] … docker file ARG token COPY .npmrc .npmrc … .npmrc file ..

Read more

I know there are several posts/questions like this but nothing answered it. I am using cloudbuild.yaml and reading a secret value from the secret manager and passing it like this. YAML file entrypoint: /bin/sh args: [‘-c’, ‘docker build -t gcr.io/$PROJECT_ID/portal:$SHORT_SHA-${_TARGET} –build-arg token=$$TOKEN . ‘] … docker file ARG token COPY .npmrc .npmrc … .npmrc file ..

Read more

I have this yaml file for gcloud and when I echo the value of Test_Secret, it returns $Test_Secret not ‘testvalue123’ from dockerfile. What am I doing wrong? steps: – name: ‘gcr.io/cloud-builders/docker’ id: Build args: – ‘build’ – ‘target=${_TARGET}’ – ‘–build-arg’ – "igx_token=$$Test_Secret" secretEnv: [‘Test_Secret’] availableSecrets: secretManager: – versionName: projects/123/secrets/Test_Secret/versions/1 env: Test_Secret Source: Docker..

Read more

I’m trying to deploy a Node project with a Dockerfile to Google Cloud Run with the gcloud beta run deploy command. Long story short, I would like to copy my local node_modules/my-module after running RUN npm install in the Dockerfile: COPY node_modules/my-module /app/node_modules/my-module/ (I only do this while in development, to avoid committing and pushing ..

Read more

I’m quite new for pretty much everyhing. Docker. Gcloud. Gitlab 😀 I need to pass some configuration to my dockerfile. because angular part should be compiled with different configurations for each env. i intend to use –substitutions but it seems like i can use it for passing another variable other than: Only the following built-in ..

Read more

I’m about to lose my mind. I’m reading the doc: https://cloud.google.com/sdk/gcloud/reference/builds/submit?hl=it#–pack And here it says that use –pack=[builder=BUILDER],[env=ENV],[image=IMAGE] To pass environment variables to the builder use the optional "env" key/value argument where value is a list of key values using escaping if necessary. So I implement what I understand from the documentation as, gcloud builds ..

Read more

When trying to deploy my docker container to Google cloud I got the error (RuntimeError) environment variable DATABASE_URL is missing. even though I had successfully set the DATABASE_URL variable using the instructions here. This error happens after I run the command gcloud run deploy –image gcr.io/PROJECT-ID/backend –platform managed any help would be greatly appreciated. Source: ..

Read more