Skip to content

Commit e12548a

Browse files
Merge pull request #262679 from anthonychu/patch-22
[Container Apps] Fix githubAPIURL scaler metadata
2 parents a75e2da + f6186c7 commit e12548a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

articles/container-apps/tutorial-ci-cd-runners-jobs.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ You can now create a job that uses to use the container image. In this section,
392392
az containerapp job create -n "$JOB_NAME" -g "$RESOURCE_GROUP" --environment "$ENVIRONMENT" \
393393
--trigger-type Event \
394394
--replica-timeout 1800 \
395-
--replica-retry-limit 1 \
395+
--replica-retry-limit 0 \
396396
--replica-completion-count 1 \
397397
--parallelism 1 \
398398
--image "$CONTAINER_REGISTRY_NAME.azurecr.io/$CONTAINER_IMAGE_NAME" \
@@ -401,7 +401,7 @@ You can now create a job that uses to use the container image. In this section,
401401
--polling-interval 30 \
402402
--scale-rule-name "github-runner" \
403403
--scale-rule-type "github-runner" \
404-
--scale-rule-metadata "github-runner=https://api.github.com" "owner=$REPO_OWNER" "runnerScope=repo" "repos=$REPO_NAME" "targetWorkflowQueueLength=1" \
404+
--scale-rule-metadata "githubAPIURL=https://api.github.com" "owner=$REPO_OWNER" "runnerScope=repo" "repos=$REPO_NAME" "targetWorkflowQueueLength=1" \
405405
--scale-rule-auth "personalAccessToken=personal-access-token" \
406406
--cpu "2.0" \
407407
--memory "4Gi" \
@@ -424,7 +424,7 @@ You can now create a job that uses to use the container image. In this section,
424424
--polling-interval 30 `
425425
--scale-rule-name "github-runner" `
426426
--scale-rule-type "github-runner" `
427-
--scale-rule-metadata "github-runner=https://api.github.com" "owner=$REPO_OWNER" "runnerScope=repo" "repos=$REPO_NAME" "targetWorkflowQueueLength=1" `
427+
--scale-rule-metadata "githubAPIURL=https://api.github.com" "owner=$REPO_OWNER" "runnerScope=repo" "repos=$REPO_NAME" "targetWorkflowQueueLength=1" `
428428
--scale-rule-auth "personalAccessToken=personal-access-token" `
429429
--cpu "2.0" `
430430
--memory "4Gi" `
@@ -448,7 +448,7 @@ You can now create a job that uses to use the container image. In this section,
448448
| `--polling-interval` | The polling interval at which to evaluate the scale rule. |
449449
| `--scale-rule-name` | The name of the scale rule. |
450450
| `--scale-rule-type` | The type of scale rule to use. To learn more about the GitHub runner scaler, see the KEDA [documentation](https://keda.sh/docs/latest/scalers/github-runner/). |
451-
| `--scale-rule-metadata` | The metadata for the scale rule. |
451+
| `--scale-rule-metadata` | The metadata for the scale rule. If you're using GitHub Enterprise, update `githubAPIURL` with its API URL. |
452452
| `--scale-rule-auth` | The authentication for the scale rule. |
453453
| `--secrets` | The secrets to use for the job. |
454454
| `--env-vars` | The environment variables to use for the job. |
@@ -711,7 +711,7 @@ You can run a manual job to register an offline placeholder agent. The job runs
711711
az containerapp job create -n "$PLACEHOLDER_JOB_NAME" -g "$RESOURCE_GROUP" --environment "$ENVIRONMENT" `
712712
--trigger-type Manual `
713713
--replica-timeout 300 `
714-
--replica-retry-limit 1 `
714+
--replica-retry-limit 0 `
715715
--replica-completion-count 1 `
716716
--parallelism 1 `
717717
--image "$CONTAINER_REGISTRY_NAME.azurecr.io/$CONTAINER_IMAGE_NAME" `
@@ -803,7 +803,7 @@ Now that you have a placeholder agent, you can create a self-hosted agent. In th
803803
az containerapp job create -n "$JOB_NAME" -g "$RESOURCE_GROUP" --environment "$ENVIRONMENT" \
804804
--trigger-type Event \
805805
--replica-timeout 1800 \
806-
--replica-retry-limit 1 \
806+
--replica-retry-limit 0 \
807807
--replica-completion-count 1 \
808808
--parallelism 1 \
809809
--image "$CONTAINER_REGISTRY_NAME.azurecr.io/$CONTAINER_IMAGE_NAME" \
@@ -826,7 +826,7 @@ az containerapp job create -n "$JOB_NAME" -g "$RESOURCE_GROUP" --environment "$E
826826
az containerapp job create -n "$JOB_NAME" -g "$RESOURCE_GROUP" --environment "$ENVIRONMENT" `
827827
--trigger-type Event `
828828
--replica-timeout 1800 `
829-
--replica-retry-limit 1 `
829+
--replica-retry-limit 0 `
830830
--replica-completion-count 1 `
831831
--parallelism 1 `
832832
--image "$CONTAINER_REGISTRY_NAME.azurecr.io/$CONTAINER_IMAGE_NAME" `

0 commit comments

Comments
 (0)