@@ -166,10 +166,22 @@ make ibmcloud-ce-login
166166make podman # or: make docker
167167make ibmcloud-tag
168168make ibmcloud-push
169+ # First time only: create the registry pull secret (see note below)
170+ ibmcloud ce secret create --name " $IBMCLOUD_REGISTRY_SECRET " \
171+ --format registry \
172+ --server " $( echo " $IBMCLOUD_IMAGE_NAME " | cut -d/ -f1) " \
173+ --username iamapikey --password " $IBMCLOUD_API_KEY "
169174make ibmcloud-deploy
170175```
171176
172- !!! info "` make ibmcloud-deploy ` handles env injection automatically"
177+ !!! info "Registry pull secret — first-time setup"
178+ ` make ibmcloud-deploy ` ** requires** a registry pull secret named ` $IBMCLOUD_REGISTRY_SECRET `
179+ to exist before it runs. It validates this and exits with a helpful error if the secret is
180+ missing. The example above uses an IAM API key (` iamapikey ` ), but you can use any credential
181+ type accepted by ` ibmcloud ce secret create --format registry ` — for example a service ID key.
182+ Create the secret once; subsequent deploys reuse it.
183+
184+ !!! info "` make ibmcloud-deploy ` manages the runtime env secret automatically"
173185 The target creates or updates a Code Engine secret named ` <app>-env ` (where ` <app> ` is
174186 ` $IBMCLOUD_CODE_ENGINE_APP ` ) from your local ` .env ` on every run, then passes
175187 ` --env-from-secret <app>-env ` to the app. You do not need a
@@ -202,6 +214,17 @@ ibmcloud ce application update --name "$IBMCLOUD_CODE_ENGINE_APP"
202214
203215## 4 - Workflow B - Manual IBM Cloud CLI
204216
217+ !!! tip "Load ` .env.ce ` into your shell first"
218+ The CLI commands below reference ` $IBMCLOUD_* ` variables defined in ` .env.ce ` .
219+ Export them once before running any step:
220+
221+ ```bash
222+ export $(grep -v '^#' .env.ce | grep -v '^$' | xargs)
223+ ```
224+
225+ Without this step every `$IBMCLOUD_*` reference expands to an empty string and
226+ commands fail with errors such as `Required flag "name" not set`.
227+
205228``` bash
206229# 1 - Install the IBM Cloud CLI using the official instructions:
207230# https://cloud.ibm.com/docs/cli?topic=cli-getting-started
0 commit comments