mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 11:51:02 +00:00
Use map on all environment keys in our config (#3500)
and also fix https://ci.woodpecker-ci.org/repos/3780/pipeline/13941/24
This commit is contained in:
parent
b6b2ab0901
commit
ad7509e07c
1 changed files with 11 additions and 9 deletions
|
@ -38,6 +38,8 @@ steps:
|
|||
image: *golang_image
|
||||
commands:
|
||||
- go run go.woodpecker-ci.org/woodpecker/v2/cmd/cli lint
|
||||
environment:
|
||||
WOODPECKER_DISABLE_UPDATE_CHECK: true
|
||||
when:
|
||||
- event: pull_request
|
||||
path:
|
||||
|
@ -93,7 +95,7 @@ steps:
|
|||
- vendor
|
||||
image: *golang_image
|
||||
environment:
|
||||
- WOODPECKER_DATABASE_DRIVER=sqlite3
|
||||
WOODPECKER_DATABASE_DRIVER: sqlite3
|
||||
commands:
|
||||
- make test-server-datastore-coverage
|
||||
when:
|
||||
|
@ -104,8 +106,8 @@ steps:
|
|||
- vendor
|
||||
image: *golang_image
|
||||
environment:
|
||||
- WOODPECKER_DATABASE_DRIVER=postgres
|
||||
- WOODPECKER_DATABASE_DATASOURCE=host=sv-postgres user=postgres dbname=postgres sslmode=disable
|
||||
WOODPECKER_DATABASE_DRIVER: postgres
|
||||
WOODPECKER_DATABASE_DATASOURCE: 'host=sv-postgres user=postgres dbname=postgres sslmode=disable'
|
||||
commands:
|
||||
- make test-server-datastore
|
||||
when: *when
|
||||
|
@ -115,8 +117,8 @@ steps:
|
|||
- vendor
|
||||
image: *golang_image
|
||||
environment:
|
||||
- WOODPECKER_DATABASE_DRIVER=mysql
|
||||
- WOODPECKER_DATABASE_DATASOURCE=root@tcp(sv-mysql:3306)/test?parseTime=true
|
||||
WOODPECKER_DATABASE_DRIVER: mysql
|
||||
WOODPECKER_DATABASE_DATASOURCE: root@tcp(sv-mysql:3306)/test?parseTime=true
|
||||
commands:
|
||||
- make test-server-datastore
|
||||
when: *when
|
||||
|
@ -145,14 +147,14 @@ services:
|
|||
image: docker.io/postgres:16
|
||||
ports: ['5432']
|
||||
environment:
|
||||
- POSTGRES_USER=postgres
|
||||
- POSTGRES_HOST_AUTH_METHOD=trust
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_HOST_AUTH_METHOD: trust
|
||||
when: *when
|
||||
|
||||
sv-mysql:
|
||||
image: docker.io/mysql:8.2.0
|
||||
ports: ['3306']
|
||||
environment:
|
||||
- MYSQL_DATABASE=test
|
||||
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
|
||||
MYSQL_DATABASE: test
|
||||
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
|
||||
when: *when
|
||||
|
|
Loading…
Reference in a new issue