Hey!
I'm trying to use a docker image, built in step 1, as a service in step 2.
The docker image name is defined by the short commit sha, so the docker image url has to be dynamically set.
Is there any way to do this?
Or would I have to define a static image name (e.g. :testing) to use specifically for this pipeline?
pipelines:
branches:
master:
- step:
image: go:something
script:
- # test go code
- # build docker image with tag=short_commit_sha (7chars)
- step:
image: acceptance_tester_image
script:
- # test api server image using service api-server
services:
- api-server
definitions:
services:
api-server:
image:
name: IMAGE/I/BUILT/IN/STEP/ONE:short_commit_sha
options:
docker: true