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:
parent
f54cc2f853
commit
6db1bfa46b
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user