I have a bitbucket pipeline with a definitions section like so:
definitions:
services:
mysql:
image: mysql:5.7
restart: always
environment:
MYSQL_ROOT_PASSWORD: [redacted]
MYSQL_DATABASE: [redacted]
MYSQL_USER: [redacted]
MYSQL_PASSWORD: [redacted]
ports:
- "3306:3306"
This works just fine and the pipeline executes as normal. However, the BitBucket code editor seems to erroneously believe the file is incorrect:
Is there a solution for that?
Hi @kenkinder ,
It might be due to the commands not being supported for configuration.
Based on this documentation Use services and databases in Bitbucket Pipelines i'm seeing differences.
Hi Ken,
Bitbucket Pipelines has its own YAML configuration. It looks like you're trying to reuse the one defined on the Dockerhub readme? You cannot combine the stack.yml format with the bitbucket-pipelines.yml format.
The 'restart' and 'ports' properties shouldn't be necessary for you here. See how you go without them.
Thanks,
Phil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.