From daefa46588c7751e7598d82229d515ddbb4be0c1 Mon Sep 17 00:00:00 2001 From: Ryan Bourdais <67397011+ryanbourdais@users.noreply.github.com> Date: Wed, 19 Apr 2023 13:00:11 -0500 Subject: [PATCH] fix: added enum for job docker images (#30) * fix: added enum for docker in jobs --- .circleci/test-deploy.yml | 2 ++ src/jobs/lint.yml | 7 ++++++- src/jobs/unit_test.yml | 7 ++++++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.circleci/test-deploy.yml b/.circleci/test-deploy.yml index e23d8bd..c1c1008 100644 --- a/.circleci/test-deploy.yml +++ b/.circleci/test-deploy.yml @@ -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 diff --git a/src/jobs/lint.yml b/src/jobs/lint.yml index 447af73..fe64326 100644 --- a/src/jobs/lint.yml +++ b/src/jobs/lint.yml @@ -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. @@ -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:<> + - image: <>/flutter:<> steps: - checkout - install_pub: diff --git a/src/jobs/unit_test.yml b/src/jobs/unit_test.yml index 284b157..f490c1d 100644 --- a/src/jobs/unit_test.yml +++ b/src/jobs/unit_test.yml @@ -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. @@ -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:<> + - image: <>/flutter:<> steps: - checkout - install_pub: