Skip to content

Commit

Permalink
fix: added enum for job docker images (#30)
Browse files Browse the repository at this point in the history
* fix: added enum for docker in jobs
  • Loading branch information
ryanbourdais authored Apr 19, 2023
1 parent c5d0c4f commit daefa46
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .circleci/test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ workflows:
filters: *filters
- flutter/unit_test:
app-dir: ./sample
registry: "ghcr.io/cirruslabs"
version: "3.7.7"
filters: *filters
- flutter/lint:
app-dir: ./sample
Expand Down
7 changes: 6 additions & 1 deletion src/jobs/lint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
description: >
Run static analysis(flutter analyze)
parameters:
registry:
type: enum
enum: ["cirrusci", "ghcr.io/cirruslabs"]
description: The registry to get the flutter image from, ghrc.io should be used for all flutter versions > 3.7.7.
default: "cirrusci"
version:
type: string
description: The target version for the Flutter SDK.
Expand All @@ -14,7 +19,7 @@ parameters:
description: Change the default cache version if you need to clear the cache for any reason.
type: string
docker:
- image: cirrusci/flutter:<<parameters.version>>
- image: <<parameters.registry>>/flutter:<<parameters.version>>
steps:
- checkout
- install_pub:
Expand Down
7 changes: 6 additions & 1 deletion src/jobs/unit_test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
description: >
Run Unit Test
parameters:
registry:
type: enum
enum: ["cirrusci", "ghcr.io/cirruslabs"]
description: The registry to get the flutter image from, ghrc.io should be used for all flutter versions > 3.7.7.
default: "cirrusci"
version:
type: string
description: The target version for the Flutter SDK.
Expand All @@ -14,7 +19,7 @@ parameters:
description: Change the default cache version if you need to clear the cache for any reason.
type: string
docker:
- image: cirrusci/flutter:<<parameters.version>>
- image: <<parameters.registry>>/flutter:<<parameters.version>>
steps:
- checkout
- install_pub:
Expand Down

0 comments on commit daefa46

Please sign in to comment.