Hello,
could anybody give me example of how make docker images definitions.
definitions for steps, need same for docker images
definitions:
steps:
- step: &build-test
name: Build and test
script:
- mvn package
artifacts:
- target/**
pipelines:
branches:
develop:
- step: *build-test
master:
- step: *build-test
Thanks
Hello @Viktor Ivershin,
I'm not sure this is what you meant: one of the simplest ways of building a Docker image basically consists of two steps:
I hope I understood your question correctly. Please elaborate the details otherwise.
Cheers,
Daniil
definitions for steps, need same for docker images
definitions:
steps:
- step: &build-test
name: Build and test
script:
- mvn package
artifacts:
- target/**
pipelines:
branches:
develop:
- step: *build-test
master:
- step: *build-test
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Then these pages are probably what you're after:
They both contain examples on how to use Docker in the configuration.
Cheers,
Daniil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I need example how to use definitions for docker images in pipelines, not docker builds or something
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
definitions:
image: &name-of-definition
{{image configuration}}
...
branch:
master:
- step
image:
<<: *name-of-definition
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.