Hi
I am trying to setup self host runner on my server. Build and Test pass when it was running on Bitbucket Pipeline but when add self host, build and test starting to fail at - ./vendor/bin/pest --coverage script and the error is mysql connection refused on all of the failed test cases. My application framework is Laravel.
I scoured the internet looking for answer before posting this question. Please be kind.
Here is my bitbucket-pipelines.yml:
image:
name: ericsssan/altern8:v1.0.1
username: $DOCKER_HUB_USERNAME
password: $DOCKER_HUB_PASSWORD
email: $DOCKER_HUB_EMAIL
pipelines:
pull-requests:
'**':
- step:
runs-on:
- self.hosted
- linux
name: Build and Test
script:
- ln -f -s .env.pipelines .env
- composer install
- php artisan key:generate
- php artisan optimize:clear
- ./vendor/bin/pest --coverage
- npm ci --legacy-peer-deps
- npm run coverage
- npm run build
artifacts: # defining the artifacts to be passed to each future step.
- public/build/**
- vendor/**
- node_modules/**
services:
- mysql
- redis
definitions:
services:
redis:
image: redis
mysql:
image: mysql:5.7
variables:
MYSQL_DATABASE: $DB_DATABASE
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
MYSQL_USER: $DB_USERNAME
MYSQL_PASSWORD: $DB_PASSWORD
Hi Eric,
In order to be able to better help you, would it be possible for you to share the following?
Please make sure to sanitize any private/sensitive info from both, prior to sharing here.
Kind regards,
Theodora
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.