ENOENT while running mup deploy from a Bitbucket pipeline
See original GitHub issueHi!
I have used mup for years, but I have always just deployed from my local environment. Now, I am trying to deploy a meteor app to a Digital Ocean droplet from a Bitbucket pipeline, but I am having troubles.
The error I get from mup is:
{ cwd: '/opt/atlassian/pipelines/agent/build' }
{ [Error: spawn ENOENT] code: 'ENOENT', errno: 'ENOENT', syscall: 'spawn' }
From googling I believe this could be caused by that the path or file does not exist or is malformed. I have used pwd
in order to find the path and it is /opt/atlassian/pipelines/agent/build
which to me seems to match the path in the error message above. { cwd: '/opt/atlassian/pipelines/agent/build' }
Does anyone have a successful Bitbucket Pipeline running that deploys a meteor app with mup or have any idea on what is going on here and could help me?
My pipeline configuration for now (which kind of shows the steps I have tried for getting it to work):
pipelines:
default:
- step:
script: # Modify the commands below to build your repository.
- mkdir -p ~/.ssh
- ls
- pwd
- cd .deploy
- cat my_known_hosts >> ~/.ssh/known_hosts
- cat id_rsa.pub >> ~/.ssh/id_rsa.pub
- (umask 077; echo $SSH_KEY | base64 --decode > ~/.ssh/id_rsa)
- npm install -g mup@1.0.4
- npm install -g ssh2
- mup deploy```
Issue Analytics
- State:
- Created 7 years ago
- Comments:15 (4 by maintainers)
Top GitHub Comments
I would share with you this docker and pipelines that works for me.
Meteor installation and mup installation are set inside Dockerfile. I’m not a pro in docker so feel free to try and modify it.
Docker - simonatoluca/bitbucket-pipelines-mup - link
Pipelines
I hope this will help in future.
thank you @brianlukoff! So i can try to copy them in a more accessible folder… ~/ssh/id_rsa maybe?