Browse Source

ci: fix MySQL connection using TCP instead of Unix socket

MySQL client libraries resolve 'localhost' to a Unix socket path
   (/run/mysqld/mysqld.sock), which does not exist in the containerized
   service. Use 127.0.0.1 to force a TCP connection.
pull/6997/head
TriplEight 3 weeks ago
parent
commit
e03981ecb4
No known key found for this signature in database GPG Key ID: 9E9B1BBD89CE29A1
  1. 2
      .github/workflows/integration-test.yml

2
.github/workflows/integration-test.yml

@ -123,7 +123,7 @@ jobs:
--health-retries 15
env:
DATABASE_URL: "mysql://vaultwarden:vaultwarden@localhost:3306/vaultwarden"
DATABASE_URL: "mysql://vaultwarden:vaultwarden@127.0.0.1:3306/vaultwarden"
steps:
- name: Install dependencies

Loading…
Cancel
Save