Skip to content

Commit

Permalink
use proper credentials for mysql root
Browse files Browse the repository at this point in the history
  • Loading branch information
pascal-fischer committed Jan 19, 2025
1 parent 8849b40 commit 3525837
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/golang-test-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ jobs:
if: matrix.store == 'mysql'
run: |
for i in {1..10}; do
if docker exec my-mysql mysqladmin -uroot ping &>/dev/null; then
if nc -z localhost 3306; then
break
fi
echo "Waiting for MySQL..."
Expand All @@ -242,7 +242,7 @@ jobs:
fi
if [ "${{ matrix.store }}" = "mysql" ]; then
export NETBIRD_STORE_ENGINE_MYSQL_DSN="root:@tcp(localhost:3306)/netbird?parseTime=True"
export NETBIRD_STORE_ENGINE_MYSQL_DSN="root:testing@tcp(localhost:3306)/testing?parseTime=True"
fi
CGO_ENABLED=1 GOARCH=${{ matrix.arch }} \
Expand Down Expand Up @@ -334,8 +334,6 @@ jobs:
if: matrix.store == 'mysql'
run: |
docker run -d \
-e MYSQL_ROOT_PASSWORD=netbird \
-e MYSQL_DATABASE=netbird \
-p 3306:3306 \
--name my-mysql \
mlsmaycon/warmed-mysql:8
Expand Down Expand Up @@ -558,8 +556,6 @@ jobs:
if: matrix.store == 'mysql'
run: |
docker run -d \
-e MYSQL_ROOT_PASSWORD=netbird \
-e MYSQL_DATABASE=netbird \
-p 3306:3306 \
--name my-mysql \
mlsmaycon/warmed-mysql:8
Expand All @@ -584,7 +580,7 @@ jobs:
fi
if [ "${{ matrix.store }}" = "mysql" ]; then
export NETBIRD_STORE_ENGINE_MYSQL_DSN="root:netbird@tcp(localhost:3306)/netbird?parseTime=True"
export NETBIRD_STORE_ENGINE_MYSQL_DSN="root:testing@tcp(localhost:3306)/testing?parseTime=True"
fi
CGO_ENABLED=1 GOARCH=${{ matrix.arch }} \
Expand Down

0 comments on commit 3525837

Please sign in to comment.