Hi,
I am trying to run deployment scripts in my custom docker image
In the yaml running the image like this:
docker run -u root -i -w /sfdx-scripts fluido/fluidosfdx
There is a folder on the image called /sfdx-scripts where the scripts are, then in the pipeline I run for testing purposes this:
script:
- ls -l
- cd /sfdx-scripts
- ./sfdx.sh deploy
the ls -l list the content of BITBUCKET_CLONE_DIR and the next line cd /sfdx-scripts results in error since the folder is not present
what am I doing wrong ?
thanks,
-Jani
@Jani Ruohomaa for your scenario, it sounds like you are trying to use your own docker image as a build environment (see https://confluence.atlassian.com/bitbucket/use-docker-images-as-build-environments-792298897.html ).
You could so something similar to:
pipelines:
default:
- step:
image:
name: fluido/fluidosfdx
username: <dockerhub username>
password: <dockerhub password>
script:
- /sfdx-scripts/sfdx.sh deploy
Alternatively if you dont want to run your pipeline with that docker image, you should user docker run or exec in your build script to execute sdfx.sh from within your docker container:
docker run -v $(pwd):<target dir> -w $(pwd) fluido/fluidosfdx /sfdx-scripts/sfdx.sh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.