1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2025-02-04 18:21:06 +02:00

Bump to mysql 8 (#2559)

This commit is contained in:
Patrick Schratz 2023-10-10 18:20:08 +02:00 committed by GitHub
parent f54cc2f853
commit 6db1bfa46b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 5 deletions

View File

@ -136,7 +136,7 @@ services:
when: *when
service-mysql:
image: mysql:5.6.27
image: mysql:8.1.0
ports: ["3306"]
environment:
- MYSQL_DATABASE=test

View File

@ -38,8 +38,8 @@ matrix:
- 1.4
- 1.3
DATABASE:
- mysql:5.5
- mysql:6.5
- mysql:8
- mysql:5
- mariadb:10.1
steps:
@ -68,12 +68,12 @@ steps:
- go test
+ environment:
+ - GO_VERSION=1.4
+ - DATABASE=mysql:5.5
+ - DATABASE=mysql:8
services:
database:
- image: ${DATABASE}
+ image: mysql:5.5
+ image: mysql:8
```
## Examples

View File

@ -20,6 +20,7 @@ services:
## Configure MySQL/MariaDB
The below example demonstrates MySQL database configuration. See the official driver [documentation](https://github.com/go-sql-driver/mysql#dsn-data-source-name) for configuration options and examples.
The minimum version of MySQL/MariaDB required is determined by the `go-sql-driver/mysql` - see [it's README](https://github.com/go-sql-driver/mysql#requirements) for more information.
```diff
# docker-compose.yml