You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.