I have added branch specific steps to build the image for nodejs application, here is the pipeline
options:
docker: true
pipelines:
branches:
dev:
- step:
name: Build Prod Image
image: node:9.50
services:
- docker
script:
- npm install
- npm run buildtest
"dev" branch is available, if I add "default" block that is getting executed for master branch commit. Please let me know if this pipeline is wrong or any hint what might be going wrong
Looks like you have an indentation error in your yml file after the `- step` block, you need to put child blocks with more white-space for them to get correctly recognized.
Please use online validator when you are not sure.
options:
docker: true
pipelines:
branches:
dev:
- step:
name: Build Dev Image
image: node:9.50
services:
- docker
script: # Modify the commands below to build your repository.
- npm install
- npm run buildtest
I have verified from the same validator still not working, here is the updated one
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't know if it is how you copied/pasted the yml file here, but the above is still an invalid format.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.