Skip to content
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

Don't pull the published container if we're in dev mode #42

Merged
merged 2 commits into from
Sep 11, 2023

Conversation

cpoile
Copy link
Member

@cpoile cpoile commented Sep 11, 2023

Summary

  • If we're in dev mode, we don't need to pull the published container.

Ticket Link

  • none

@cpoile cpoile added the 2: Dev Review Requires review by a core committer label Sep 11, 2023
Comment on lines 81 to 84
if os.Getenv("DEV_MODE") == "true" {
cfg.Runner = "calls-recorder:master"
}
return s.updateJobRunner(cfg.Runner)
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reasons for not adding the check directly in updateJobRunner? It's already a method that does nothing if the image exists so it could return early if in dev mode.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yah, that's makes sense. But probably we still want to check if we have master.

Copy link
Contributor

@streamer45 streamer45 left a comment

Choose a reason for hiding this comment

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

Looks good 👍

@streamer45 streamer45 added 3: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core committer labels Sep 11, 2023
@streamer45 streamer45 added this to the v0.4.0 milestone Sep 11, 2023
@streamer45 streamer45 merged commit d196e46 into master Sep 11, 2023
3 checks passed
@streamer45 streamer45 deleted the dont-pull-container-in-dev-mode branch September 11, 2023 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3: Reviews Complete All reviewers have approved the pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants