Skip to content

Commit daefa46

Browse files
authored
fix: added enum for job docker images (#30)
* fix: added enum for docker in jobs
1 parent c5d0c4f commit daefa46

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

.circleci/test-deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ workflows:
4747
filters: *filters
4848
- flutter/unit_test:
4949
app-dir: ./sample
50+
registry: "ghcr.io/cirruslabs"
51+
version: "3.7.7"
5052
filters: *filters
5153
- flutter/lint:
5254
app-dir: ./sample

src/jobs/lint.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
description: >
22
Run static analysis(flutter analyze)
33
parameters:
4+
registry:
5+
type: enum
6+
enum: ["cirrusci", "ghcr.io/cirruslabs"]
7+
description: The registry to get the flutter image from, ghrc.io should be used for all flutter versions > 3.7.7.
8+
default: "cirrusci"
49
version:
510
type: string
611
description: The target version for the Flutter SDK.
@@ -14,7 +19,7 @@ parameters:
1419
description: Change the default cache version if you need to clear the cache for any reason.
1520
type: string
1621
docker:
17-
- image: cirrusci/flutter:<<parameters.version>>
22+
- image: <<parameters.registry>>/flutter:<<parameters.version>>
1823
steps:
1924
- checkout
2025
- install_pub:

src/jobs/unit_test.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
description: >
22
Run Unit Test
33
parameters:
4+
registry:
5+
type: enum
6+
enum: ["cirrusci", "ghcr.io/cirruslabs"]
7+
description: The registry to get the flutter image from, ghrc.io should be used for all flutter versions > 3.7.7.
8+
default: "cirrusci"
49
version:
510
type: string
611
description: The target version for the Flutter SDK.
@@ -14,7 +19,7 @@ parameters:
1419
description: Change the default cache version if you need to clear the cache for any reason.
1520
type: string
1621
docker:
17-
- image: cirrusci/flutter:<<parameters.version>>
22+
- image: <<parameters.registry>>/flutter:<<parameters.version>>
1823
steps:
1924
- checkout
2025
- install_pub:

0 commit comments

Comments
 (0)