Hi there. I'm using a custom Docker image stored in the Docker Hub ("jimmyadaro/gitlab-ci-cd"), it's a simple Alpine image which updates itself and installs OpenSSH and LFTP. Quite simple, right? It works for me in GitLab CI/CD (I even made a simple tutorial like a year ago).
Now, I'm trying to use bash or OpenSSH and I get a pipeline fatal error. These are the commands inside my bitbucket-pipelines.yml file and the errors shown in the Bitbucket's "Pipelines" UI. What could be wrong?
My final solution was to use `bitbucket-pipelines.yml` file to call a new one `bitbucket-pipelines.sh` where I did the whole deployment process instead of using commands/scripts in the "deployment" step, like so:
# Deploy to UAT / Test based on commit push to "develop" branch
name: Build (npm)
# Use a light Node image
# Cache Node
# Execute npm ci and build/bundle scripts
# Use npm ci instead of npm install
- npm ci
# Build my thing
- npm run-script build
# "$ pwd" for this step: "/opt/atlassian/pipelines/agent/build/", inside has all the repo files
name: Deploy to UAT
# In case you want to trigger this by using Bitbucket's UI, uncomment the next line
# Make the deploy file executable and run it
- chmod +x bitbucket-pipelines-uat.sh
# Remove SSH key (even if this container should be self-destroyed)
- rm -f ~/.ssh/id_rsa
Hope it helps!
I have the same problem. Here is my pipeline sript. It will not download the image and use the image as the based.
# call the build command within my docker container
We are excited to announce the open beta program for self-hosted runners. Bitbucket Pipelines Runners is available to everyone. Please try it and let us know your feedback. If you have any issue...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events