ci: postgres test

This commit is contained in:
Denis Gukov 2022-11-19 22:24:25 +05:00
parent a5b95dc481
commit 1b65818ece
3 changed files with 11 additions and 8 deletions

View File

@ -84,6 +84,7 @@ jobs:
- uses: actions/checkout@v3
- run: context=ci prefix=.postgres task dc:up
- run: context=ci prefix=.bolt task dc:up
- run: context=ci prefix=.mysql task dc:up

View File

@ -2,14 +2,13 @@ version: '2'
services:
postgres:
image: mysql:5.6
image: postgres:14
environment:
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
MYSQL_DATABASE: semaphore
MYSQL_USER: semaphore
MYSQL_PASSWORD: semaphore
POSTGRES_USER: semaphore
POSTGRES_PASSWORD: semaphore
POSTGRES_DB: semaphore
ports:
- "3306:3306"
- "5432:5432"
semaphore_ci:
image: semaphoreui/semaphore:ci-compose

View File

@ -3,10 +3,13 @@
cat <<EOF
{
"postgres": {
"host": "postgres:5342",
"host": "postgres:5432",
"user": "semaphore",
"pass": "semaphore",
"name": "semaphore"
"name": "semaphore",
"options": {
"sslmode": "disable"
}
},
"dialect": "postgres",
"access_key_encryption": "${SEMAPHORE_ACCESS_KEY_ENCRYPTION}"