The deploy.rake
is a companion file to my blog series Synology On Rails.
This is from Part IV, where I embraced docker-compose.yml
and how Synology handles containers in DSM 7.x.
- Generating a version in
config/version.yml
- Building your container image using however you've set up your
Dockerfile
, etc. - Tagging your Git repo with the version
- Tagging your image with the repo you're pushing to
- Pushing your image to that repo
- Nice STDOUT messaging
- Assumes/requires Docker running
- Git for version control
- Embracing the version number generation
- Drop
deploy.rake
in your Rails App'slib/tasks
- Update the constants at the top of the file
- Customize as you see fit
- Deploy with:
bundle exec rake update_version deploy