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

State docker image #43

Merged
merged 2 commits into from
Dec 4, 2020
Merged

State docker image #43

merged 2 commits into from
Dec 4, 2020

Conversation

tongueroo
Copy link
Collaborator

This is a πŸ™‹β€β™‚οΈ feature or enhancement.

  • I've added tests (if it's a bug, feature or enhancement)
  • I've adjusted the documentation (if it's a feature or enhancement)
  • The test suite passes (run bundle exec rspec to verify this)

Summary

Save kubes state file that stores the last build docker image name to an env based folder. So don't accidentally deploy an image mean for dev to prod and vice versa. Can override override with config.

.kubes/config.rb

Kubes.configure do |config|
  config.state.path = ".kubes/state/#{Kubes.env}/data.json"
end

How to Test

Go through regular Kubes QA matrix.

Version Changes

Patch

@tongueroo tongueroo merged commit 6cf3e8e into master Dec 4, 2020
@tongueroo tongueroo deleted the state-docker-image branch December 4, 2020 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant