Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Does step image override global pipeline image

Oluwapelumi Olaoye May 27, 2020

Hello,

I don't know if this currently exists...
But is there a way for me to declare a global image across all branches and steps and declare a different image in some steps that would override the default globally declared image.

 

Say something like this

image: node:...
pipelines:
default:
- step:
script:
branches:
dev:
- step:
image: ubuntu
script:

 

1 answer

0 votes
ktomk
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 28, 2020

Yes, there is and exactly like you imagined.

You can (but must not) specify an image at the top level (`image: node....` in your example). If not specified this is the Default build environment - Use Docker images as build environments.

That can be overridden on step level exactly as in your example on any `- step` (`image: ubuntu`), see Configure bitbucket-pipelines.yml for a more lengthy outline.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events