-
-
Notifications
You must be signed in to change notification settings - Fork 193
Deploying with an empty repositoryUrl (i.e. without pulling from git) doesn't seem to work #207
Comments
I have found a workaround for this (if this is still relevant for you @atleta ).. Install
And of course set your |
faced the same issue. Despite in the docs states:
It still tries to fetch @sandervankasteel thank you for the working solution! |
Don’t hesitate to submit a PR to fix it. |
…not provided (closes shipitjs#207)
@neoziro it's ready to merge. I have two more PR's that I would like to submit |
@lili21 yep, the problem is that To fix this we, probably, need another deploy flow with read-only workspace as a workaround, you can override fetch task: // Deploy from working directory without repository fetch
shipit.task('deploy:fetch', () => {
// Set the workspace variable which is originally
// set in overridden deploy:fetch
// This variable is needed in deploy:update and some other tasks
shipit.workspace = shipit.config.workspace;
shipit.emit('fetched');
}); If it won't take too much time, I'll try to post a new PR |
@lili21 the just published v5.0.0 should work out of the box without any hacks. See: https://github.com/shipitjs/shipit/tree/master/packages/shipit-deploy#workspace |
Still doesn't work. // shipitfile.js
module.exports = shipit => {
require('shipit-deploy')(shipit)
shipit.initConfig({
default: {
workspace: '/tmp/test'
keepWorkspace: true,
deployTo: '/var/test'
},
dev: {
servers: 'xxxx'
}
})
} same error. |
According to this rows that looks not really possible, that your workspace will be deleted.
an error with rev-parse is not really an issue with Do you want to deploy something, that does not belong to any repository? If so, then you need to create a separate issue. |
I just want to deploy a docker container application. I don't see the need to clone a repository. I just need to pull the image and run it. |
It's still not possible to deploy without repositoryUrl because it fails to create revision file.
|
Probably it's better to give this issue a correct name. The main concern
was in brackets: without pulling from git, but shipit still needs to
operate in a repository on dedicated side
|
How would one deal with a monorepo and microservices where all your services are in one git repo, but you would like to deploy them separately? |
Hi,
The documentation says that by leaving repositoryUrl empty (though that's a bit ambiguous) shipit can be used to deploy without fetching from git (possibly using the local directory?): "If empty Shipit will try to deploy without pulling the changes."
Now when I try to do that, it seems to ignore the above and tries to do the normal flow, it seems, which fail because of the missing repo url:
The text was updated successfully, but these errors were encountered: