Skip to content

Commit 32565a8

Browse files
allow custom docker image (#25)
1 parent 8426eee commit 32565a8

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

src/examples/global-queue.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ usage:
1111
name: workflow-queue
1212
context: <context-key>
1313
only-on-branch: main
14+
# Optionally specify a custom Docker image:
15+
# docker-image: cimg/node:18.0

src/examples/pipeline-queue.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ usage:
1111
name: pipeline-queue
1212
context: <context-key>
1313
only-on-branch: main
14+
# Optionally specify a custom Docker image:
15+
# docker-image: cimg/node:18.0

src/jobs/global-queue.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@ description: >
22
This job ensures only a single defined global workflow is running at a given point in time.
33
44
docker:
5-
- image: cimg/base:stable
5+
- image: << parameters.docker-image >>
66
resource_class: small
77

88
parameters:
9+
docker-image:
10+
type: string
11+
default: cimg/base:stable
12+
description: "Docker image to use for the executor. Defaults to cimg/base:stable."
913
debug:
1014
type: boolean
1115
default: false

src/jobs/pipeline-queue.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@ description: >
22
This job prevents a workflow within a given pipeline from running until all previous workflows have completed.
33
44
docker:
5-
- image: cimg/base:stable
5+
- image: << parameters.docker-image >>
66
resource_class: small
77

88
parameters:
9+
docker-image:
10+
type: string
11+
default: cimg/base:stable
12+
description: "Docker image to use for the executor. Defaults to cimg/base:stable."
913
debug:
1014
type: boolean
1115
default: false

0 commit comments

Comments
 (0)