From 1b65818ece3287479346c7261285a1177b9ea3a2 Mon Sep 17 00:00:00 2001 From: Denis Gukov Date: Sat, 19 Nov 2022 22:24:25 +0500 Subject: [PATCH] ci: postgres test --- .github/workflows/dev.yml | 1 + deployment/docker/ci/docker-compose.postgres.yml | 11 +++++------ deployment/docker/ci/dredd/gen-config-postgres | 7 +++++-- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index a5159b95..693ae557 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -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 diff --git a/deployment/docker/ci/docker-compose.postgres.yml b/deployment/docker/ci/docker-compose.postgres.yml index 562de384..f7139d4c 100644 --- a/deployment/docker/ci/docker-compose.postgres.yml +++ b/deployment/docker/ci/docker-compose.postgres.yml @@ -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 diff --git a/deployment/docker/ci/dredd/gen-config-postgres b/deployment/docker/ci/dredd/gen-config-postgres index eb02f84d..d7874421 100755 --- a/deployment/docker/ci/dredd/gen-config-postgres +++ b/deployment/docker/ci/dredd/gen-config-postgres @@ -3,10 +3,13 @@ cat <