-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ Feature ➾ Allow docker images to be overwritten via environment variable (#1425) #1445
Conversation
Deploying with Cloudflare Pages
|
|
One general question? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some e2e tests are failing. Can we address those first?
@AlirezaHaghshenas somehow I missed your comment here. It was thought that this would be easiest for CI/CD setups. However, I don't think this is mutually exclusive from also offering the ability override by config. I think that's a great idea too. But this was just meant to resolve a particular use-case. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is outdated. Can you merge main in and resolve all conflicts?
taqueria-plugin-ligo/common.ts
Outdated
@@ -18,7 +19,7 @@ export type IntersectionOpts = LigoOpts & CompileOpts & TestOpts; | |||
type UnionOpts = LigoOpts | CompileOpts | TestOpts; | |||
|
|||
// Points to the latest stable version. Needs to update this as part of our release process | |||
export const LIGO_DOCKER_IMAGE = 'ligolang/ligo:0.55.0'; | |||
export const LIGO_DOCKER_IMAGE = getDockerImage('ligolang/ligo:0.55.0', 'TAQ_LIGO_IMAGE'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is easier to reason and reduces cognitive overhead to only assign literals to global constants
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
I would personally be happier if we had not created the get-image tasks.
Is there an end-user use-case for those?
It's just to verify what docker image is used by a particular plugin, just in case you need to double check. I believe I made these tasks hidden from the UI. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGMT!
🌮 Taqueria PR
🪁 Description
There are four plugins currently which use docker images to facilitate their functionality:
🪂 Pre-Merge Checklist (Definition of Done)
🚦 Required to merge:
🛩️ Summary of Changes
Users were looking for the ability to override the docker image being used. This is a common request in CICD, and thus we opted to allow overrides using environment variables. This is not mutually exclusive from adding an option later to allow specifying version #s in the config file, such as the ligo version.
🎢 Test Plan
getDockerImage
, and added a unit test for it in taqueria-sdk.spec.tsget-image
that our tests can use to verify what image is being used.🛸 Type of Change