Skip to content
This repository was archived by the owner on Jan 21, 2025. It is now read-only.

make Command's job CI image configurable#217

Merged
mordamax merged 3 commits intomasterfrom
mak-move-image-to-scripts
Jul 18, 2023
Merged

make Command's job CI image configurable#217
mordamax merged 3 commits intomasterfrom
mak-move-image-to-scripts

Conversation

@mordamax
Copy link
Contributor

Closes #211

@mordamax mordamax requested a review from a team as a code owner July 18, 2023 15:01
const defaultVariables = parsedCommand.configuration.gitlab?.job.variables;
const overriddenVariables = parsedCommand.variables;
const configJobImage = parsedCommand.configuration.gitlab?.job.image;
let image: string = typeof configJobImage === "string" ? configJobImage : gitlab.defaultJobImage;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wait, why do we specify image for all commands in this PR, while we still have gitlab.defaultJobImage; ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well yea if there's a way to override a local command with -v CMD_IMAGE, and the main image is defined in "GITLAB_JOB_IMAGE" env, there's no need in "image" from .cmd.json

for CI team there will be 1 place to change it - in our repo, but it will require re-deployment (which is fine I think)
or if they wanna test it - then use CMD_IMAGE var
I am probably closing the PR in scripts paritytech/command-bot-scripts#42 and cleaning up these rows

Copy link
Contributor Author

@mordamax mordamax Jul 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated 🙏 fa17d4f

@mordamax mordamax requested a review from a team as a code owner July 18, 2023 15:21
@mordamax mordamax merged commit 7c407f1 into master Jul 18, 2023
@mordamax mordamax deleted the mak-move-image-to-scripts branch July 18, 2023 16:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make CI image to be configurable

3 participants