Hi Everyone,
I’m running into an issue with a service not running in a multi-pipeline build. The service in question is in the third pipeline in the .drone.yml
file. A service in the first pipeline runs fine. My .drone.yml
is summarised below:
---
kind: pipeline
type: docker
name: docker-image
steps:
- name: build
image: docker:dind
volumes:
- name: dockersock
path: /var/run
commands:
# some docker build and push commands (runs successfully)
# this service runs fine
services:
- name: docker
image: docker:dind
privileged: true
volumes:
- name: dockersock
path: /var/run
volumes:
- name: dockersock
temp: {}
---
kind: pipeline
type: docker
name: build
steps:
- name: build
image: # tagged image from previous pipeline
commands:
# random build commands, complete successfully
depends_on:
- docker-image
---
kind: pipeline
type: docker
name: test
# this service doesn't run
services:
- name: gotify
image: gotify/server
steps:
- name: test
image: # image from the first pipeline again
commands:
# random test commands, which depend on the gotify service running and so fail
depends_on:
- docker-image
The service runs fine when the pipeline is run locally with drone exec --pipeline test
and also with only that pipeline in the .drone.yml
file. When the third pipeline is running, the stage shows in the build. However, no logs are shown (just “Loading…”). The logs are also blank when the build completes.
This feels like it’s probably a bug, but I’m a drone novice so it’s definitely possible I’m doing something wrong.
Thanks in advance!