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

Create command to show current deployed versions #1543

Closed
wants to merge 4 commits into from

Conversation

barryvdh
Copy link
Contributor

Q A
Bug fix? No
New feature? Yes
BC breaks? No
Deprecations? No
Fixed tickets N/A

This checks the current revision on each host and shows them. This makes it easy to see which versions are actually deployed already.

Example:

+----------------------+------------------+------------------+---------+
| Host                 | Author           | Date             | Commit  |
+----------------------+------------------+------------------+---------+
| test.mydomain.com    | Mathieu          | 2018-02-12 12:16 | 27e4ebb |
|                      |-----------------------------------------------|
|                      | Import db fix                                 |
|----------------------------------------------------------------------|
| demo.mydomain.com    | Mathieu          | 2018-02-12 12:16 | 27e4ebb |
|                      |-----------------------------------------------|
|                      | Import db fix                                 |
|----------------------------------------------------------------------|
| admin.mydomain.com   | Barry vd. Heuvel | 2018-02-05 17:04 | 60eb5c8 |
|                      |-----------------------------------------------|
|                      | Remove debug                                  |
+----------------------+------------------+------------------+---------+

@antonmedv
Copy link
Member

This is really nice feature. But actually I'm working on same just in the moment. Soon will be release. Can you create separate repo with your recipe?

PS I'll fix recipe require for phar ;)

@gzumba
Copy link

gzumba commented Feb 13, 2018

I would love to see the tag (if any) here too, if possible. And the branch. I always deploy by branch or tag, so it would be way more helpful than the commit hash alone.

@barryvdh
Copy link
Contributor Author

This is really nice feature. But actually I'm working on same just in the moment. Soon will be release. Can you create separate repo with your recipe?

If your version will include similar functionality, I'll just wait for that :)

Mine was based on this gist, so could include more stuff. https://gist.github.com/varemenos/e95c2e098e657c7688fd
Not sure of tag/branch are possible with git rev though.

@gzumba
Copy link

gzumba commented Feb 13, 2018

Tag can be fetched with: git describe --tags
Branch can be fetched with: git rev-parse --abbrev-ref HEAD

I would be surprised if there were no packages that would implement these sort of git tooling in packagist already.

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.

None yet

3 participants