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

Extract $releaseDatetime in order to share a common release datetime between parallel deployments. #203

Closed

Conversation

tomzx
Copy link
Contributor

@tomzx tomzx commented Feb 27, 2015

No description provided.

while (is_dir(env()->parse($releasePath)) && $i < 42) {
$releasePath .= '.' . ++$i;
}

Copy link
Member

Choose a reason for hiding this comment

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

Why you delete this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is it really needed? And why stop at 42?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, it's needed in tests. Three times runs deploy:release and check all was correct.
42

@antonmedv
Copy link
Member

Yes, this is good feature. But it will not working in parallel mode. I will implement distributed Deployer parameters, so it will be possible to implement correct solution for this in parallel deployment mode.

@antonmedv
Copy link
Member

Build fails.

@tomzx tomzx force-pushed the features/shared-release-datetime branch from 9e0e1a2 to 0a32b19 Compare March 4, 2015 16:47
@tomzx
Copy link
Contributor Author

tomzx commented Mar 4, 2015

@Elfet With the latest change, I've created an global variable called release_identifier, which is more generic than before, and allows users to redefine how they want their release identifier to work so they could use the old numbering system if they prefer it).

@tomzx tomzx force-pushed the features/shared-release-datetime branch from 0a32b19 to 902b53a Compare March 4, 2015 16:52
@kingcrunch
Copy link

Or the VCSs revision/hash. Just saying 😄
But that would need a custom cleanup strategy as well ... maybe ignore my hash-suggestion, but maybe somebody should mention this somewhere ("release identifiers must be fully ordered" or something)

@tomzx
Copy link
Contributor Author

tomzx commented Mar 18, 2015

If I'm not mistaken, the way Capistrano does it is to append the release identifier at the end of a file containing the list of releases when a release is successfully published. Whatever the identifier is, it'll be possible to figure out which release came before/after which one based on the ordering in the file. It shouldn't be too hard to implement this feature if enough people want it.

@kingcrunch
Copy link

Just tried it myself: Capistrano3 keeps a log of revision it deployed, but that seems to be just a log.

$ cat revisions.log 
Branch master (at bdd236b) deployed as release 20150318214035 by sebastian

It still creates the actual deployments into folders based on the timestamp and delete them in order. However, that doesn't me deployer can't do it differently 😄

@antonmedv
Copy link
Member

Will be implemented in Deployer v4.

@antonmedv antonmedv closed this Aug 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants