Skip to content

Commit 0c19a0a

Browse files
author
cfsdocs
committed
Build 1983
1 parent 83897f4 commit 0c19a0a

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

job-create-source.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
copyright:
44
years: 2020, 2024
5-
lastupdated: "2024-01-09"
5+
lastupdated: "2024-01-11"
66

77
keywords: jobs in code engine, batch jobs in code engine, running jobs with code engine, creating jobs with code engine, images for jobs in code engine, jobs, job run, environment variables
88

@@ -67,7 +67,7 @@ Before you begin
6767
* Set up your [{{site.data.keyword.codeengineshort}} CLI](/docs/codeengine?topic=codeengine-install-cli) environment.
6868
* [Create and work with a project](/docs/codeengine?topic=codeengine-manage-project).
6969

70-
In this scenario, {{site.data.keyword.codeengineshort}} builds an image from your Git repository source, automatically uploads the image to your container registry, and then creates your job configuration to reference this built image with the **`job create`** command. You need to provide only a name for the job and the URL to the Git repository if the image is to be located in an {{site.data.keyword.registrylong_notm}} account. In this case, {{site.data.keyword.codeengineshort}} manages the namespace for you. However, if you want to use a different container registry, then you must specify the image and a registry access secret for that container registry. Use the **`ibmcloud ce jobrun submit`** command to run your job that references the built image. For a complete listing of options, see the [**`ibmcloud ce job create`**](/docs/codeengine?topic=codeengine-cli#cli-job-create) and [**`ibmcloud ce jobrun submit`**](/docs/codeengine?topic=codeengine-cli#cli-jobrun-submit) commands.
70+
In this scenario, {{site.data.keyword.codeengineshort}} builds an image from your Git repository source, automatically uploads the image to your container registry, and then creates your job configuration to reference this built image with the **`job create`** command. You need to provide only a name for the job and the URL to the Git repository if the image is to be located in an {{site.data.keyword.registrylong_notm}} account. In this case, {{site.data.keyword.codeengineshort}} manages the namespace for you. However, if you want to use a different container registry, then you must specify the image and a registry secret for that container registry. Use the **`ibmcloud ce jobrun submit`** command to run your job that references the built image. For a complete listing of options, see the [**`ibmcloud ce job create`**](/docs/codeengine?topic=codeengine-cli#cli-job-create) and [**`ibmcloud ce jobrun submit`**](/docs/codeengine?topic=codeengine-cli#cli-jobrun-submit) commands.
7171

7272
For information about required permissions for accessing image registries, see [Setting up authorities for image registries](/docs/codeengine?topic=codeengine-add-registry#authorities-registry).
7373

plan-repo.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,11 @@ To reference your private Git repository in a build,
122122

123123
For more information about building images, see [Building a container image](/docs/codeengine?topic=codeengine-plan-build).
124124

125+
The code repo URL must be an SSH URL such as `[email protected]:IBM/CodeEngine.git` instead of an HTTPS URL such as `https://github.ibm.com/codeengine/ui`.
126+
{: note}
127+
128+
129+
125130
### Referencing an SSH secret in a build with the CLI
126131
{: #referencing-coderepo}
127132

secret.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
copyright:
44
years: 2020, 2024
5-
lastupdated: "2024-01-09"
5+
lastupdated: "2024-01-11"
66

77
keywords: secrets with code engine, key references with code engine, key-value pair with code engine, setting up secrets with code engine, secrets, configmaps, environment variables
88

@@ -71,7 +71,7 @@ Before you begin, [create a project](/docs/codeengine?topic=codeengine-manage-pr
7171
2. From the Components page, click **Secrets and configmaps**.
7272
3. From the Secrets and configmaps page, click **Create** to create your secret.
7373
4. From the Create config page, complete the following steps:
74-
1. Select the **Secret** option.
74+
1. Select **Generic secret**, and click **Next**.
7575
2. Provide a name; for example, `mysecret`.
7676
3. Click **Add key-value pair**. Specify one or more key-value pairs for this secret. For example, specify one key as `secret1` with the value of `mysecret1` and specify another key as `secret2` with the value of `target-secret`. The name that you choose for your key does not need to be the same as the name of your environment variable. Notice that the value for the key is hidden, but it can be viewed if needed.
7777
5. Click **Create** to create the secret.

0 commit comments

Comments
 (0)