Skip to content

Commit a0bf3a4

Browse files
Use generic-worker for CI decision.
1 parent 081afc8 commit a0bf3a4

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.taskcluster.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,24 +67,28 @@ tasks:
6767
- created: {$fromNow: ''}
6868
deadline: {$fromNow: '1 hour'}
6969
provisionerId: proj-fuzzing
70-
workerType: ci
70+
workerType: ci-gw
7171
payload:
7272
features:
7373
taskclusterProxy: true
7474
maxRunTime: 3600
75-
image:
76-
type: indexed-image
77-
path: public/orion-decision.tar.zst
78-
namespace: project.fuzzing.orion.orion-decision.master
7975
env:
8076
PROJECT_NAME: ${project_name}
8177
CI_MATRIX: {$json: {$eval: matrix}}
8278
GITHUB_EVENT: {$json: {$eval: event}}
8379
GITHUB_ACTION: ${tasks_for}
8480
TASKCLUSTER_NOW: ${now}
8581
command:
86-
- ci-decision
87-
- -v
82+
- - bash
83+
- "-exc"
84+
- "-o"
85+
- "pipefail"
86+
- >
87+
curl --retry 5 --connect-timeout 25 -sSfL --write-out "%{stderr}Resolved orion-decision to %{url_effective}\n"
88+
"$TASKCLUSTER_PROXY_URL/api/index/v1/task/project.fuzzing.orion.orion-decision.master/artifacts/public/orion-decision.tar.zst"
89+
| zstdcat | podman load; podman run --rm -e TASK_ID -e RUN_ID -e TASKCLUSTER_ROOT_URL --add-host=taskcluster:127.0.0.1 --net=host
90+
-e TASKCLUSTER_PROXY_URL=http://localhost:80 -e PROJECT_NAME -e CI_MATRIX -e GITHUB_EVENT -e GITHUB_ACTION -e TASKCLUSTER_NOW
91+
mozillasecurity/orion-decision:latest ci-decision -v
8892
scopes:
8993
- queue:create-task:highest:proj-fuzzing/ci
9094
- queue:create-task:highest:proj-fuzzing/ci-*

0 commit comments

Comments
 (0)