0

I'm trying to use drone to run a mysql service

Here is my .drone.yml file

pipeline:
 clone:
  skip_verify: true
 services:
  database:
  image: mysql:latest

I've try with library/mysql and mysql for the image but drone keep saying that the image is invalid or missing. Any idea anyone ? I've tried to look at the drone log but everything seem fine to me.

creekorful
  • 351
  • 4
  • 14

1 Answers1

2

Two things were off in your original .drone.yml file:
1) the services section needs to be configured outside the pipeline (you already got that fixed as per your comment)
2) image under database needs to be indented by two spaces

From the docs: http://docs.drone.io/mysql-example/#app-drawer

services:
  database:
    image: mysql
    environment:
      - MYSQL_DATABASE=test
      - MYSQL_ALLOW_EMPTY_PASSWORD=yes
Oliver
  • 11,857
  • 2
  • 36
  • 42