-
Notifications
You must be signed in to change notification settings - Fork 185
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
git describe #370
Comments
Hey, sorry for the late reply, can you show me what The git repo is available on the deployer server so in theory I can create a variable with the content of the output (it keeps a mirror of it then uses |
Hi @REBELinBLUE , if you use tags and branches then it looks like this:
Be great to be able to run some git command or expose this in ENV? Thanks |
I thought it was fetching the ZIP archive using API ? Not via Git clone? |
I'm looking for something similar, except for the command 'git describe --tags --long'. It generates a similar version string except it also looks at lightweight tags and outputs the hash even when on the commit tag. If I could write the output to a file on de remote server that would be great! |
@cerw No because that isn't a standard git feature, it is specific to the github/bitbucket/gitlab etc APIs so wouldn't work with things like plan old self hosted git repostiries. See |
@mdriessen Makes sense, I'll have a look at adding 2 more tags for those 2 cases tomorrow but I think I need to look at a way to run commands on the deployer server to create other tags because no doubt there will be more needed at some point |
Custom tags sounds like a great feature but adding a tag for the describe command would be sufficient for my use case. Thanks for your help! |
@REBELinBLUE Any progress in making the tags for the describe commands? If not, maybe I can help? |
Really sorry, I started on it and then hit a bit of a roadblock (trying to figure out what to do if you aren't using a tag) and then got really busy at work. Willing to accept PRs if you want to take a look, if not hopefully I will get time this week to look into it |
Still happy to help too
produces even nicer version of the app :) |
Before submitting your issue, please make sure that you've checked all of the checkboxes below.
php -v
composer install --no-dev
from the root of your installation.npm install --production
from the root of your installation.rm -rf bootstrap/cache/*
from the root of your installation.Hi there,
This is more request for a feature or just talk. I want to export
git describe
before compiling npm run dev so i can use this variable inside of Laravel or Vue.js app. But Deployer downlaod the file via ZIP so there is no access to git repo.How can I solve this? I can only see sha variable in commands.
Thanks
P
The text was updated successfully, but these errors were encountered: