Comments (9)
A workaround is to create a branch and use -s <branchname>
from capistrano-deploytags.
Sorry for not having put this into the readme. This workaround is exactly what we do. I think there is some consideration needed around how to do this better in the plugin. But there are constraints that make it hard to do differently than it is now.
from capistrano-deploytags.
What would happen if the check was bypassed?
from capistrano-deploytags.
One of the problems with that is that if you weren't actually up to date with what is in the repo (assuming you deploy directly from git like most people), you would tag the wrong commit with the deployment tag. You could also be deploying code you don't know changed. Lastly, other plugins like capistrano-detect-migrations rely on the tree being correct.
from capistrano-deploytags.
If that's the only issue, one could skip deploy tagging as well. Probably one would only want that on some kind of staging setup...
from capistrano-deploytags.
So, since the plugin is all about deploy tagging, I'm wondering how you're using it if not for deployment tags? We don't use it for staging, we use it for tracking which code has been deployed to which production server environment, and the capistrano-detect-migrations plugin uses the tags to idenify new Rails migrations.
from capistrano-deploytags.
I have a staging server environment which mirrors production closely (and at times not so closely). capistrano-deploytags tags deploys to that as well, since it's just a multistage environment. Is there a way to configure cap-deploytags to only tag deploys for a subset of multistage envs?
from capistrano-deploytags.
That would be a good feature, but no, not implemented. Pull requests welcome. :)
from capistrano-deploytags.
Closing as there is a known workaround and currently no obvious solution.
from capistrano-deploytags.
Related Issues (18)
- latest tag isn't updated if version hasn't changed HOT 1
- Get rid of the -latest tag HOT 3
- Small inconsistency HOT 1
- hello! i have a similar gem HOT 2
- Running cap production deploy:migrations does not tag HOT 3
- Tags aren't removed on deploy:rollback HOT 6
- Documentation : Deploytags requires that :branch and :stage be defined HOT 8
- Tags with initial branch setting instead of actual branch deployed HOT 2
- hardcoded assumption that 'origin' remote exists HOT 4
- Don't retag redeploys HOT 2
- Make timestamps UTC to better facilitate remote teams HOT 1
- Capistrano 3 Support HOT 4
- LoadError ... deploy_tags.rb.orig HOT 1
- Version 1 missing from RubyGems.org HOT 4
- Pushing deployment tag fails when other unrelated tags already exist on remote HOT 2
- Does not respect the -n (--dry-run) flag HOT 2
- Release version with fix for deploytag_commit_message variable HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from capistrano-deploytags.