From 8e2dc458419b788773d5830eb9e6d16bc2a45543 Mon Sep 17 00:00:00 2001 From: Mario Vitale Date: Tue, 24 Sep 2024 17:50:12 +0200 Subject: [PATCH] Re-enable postgres migration tests (#28270) * Utilize separate image for migration tests * Re-enable migration tests * Apply Ibrahim's suggestion * Apply Saturn's suggestion --- .github/workflows/migration.yml | 19 +++++++++---------- .github/workflows/server-ci-template.yml | 9 ++++----- 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/.github/workflows/migration.yml b/.github/workflows/migration.yml index 2aa3c8194f..f5e506dfb7 100644 --- a/.github/workflows/migration.yml +++ b/.github/workflows/migration.yml @@ -33,17 +33,16 @@ jobs: docker restart ${COMPOSE_PROJECT_NAME}-mysql-1 && sleep 10 - name: Build test image env: - BUILD_IMAGE: mattermostdevelopment/mattermost-build-server:${{ steps.go.outputs.GO_VERSION }} + BUILD_IMAGE: golang:${{ steps.go.outputs.GO_VERSION }}-bookworm + PGLOADER_IMAGE: mattermost/mattermost-pgloader:v3.6.9 run: | - echo -e "FROM $BUILD_IMAGE\n\nRUN apt update && \ - apt remove -y pgloader && \ - apt install -y sbcl unzip libsqlite3-dev make curl gawk freetds-dev libzip-dev && \ - git clone https://github.com/dimitri/pgloader.git && \ - cd pgloader && \ - git checkout \$(git tag --list --sort=-v:refname "v*" | head -n1) && \ - make && \ - mv build/bin/pgloader /bin" >> dockerfile_tmp - docker build -t $TEST_IMAGE - < dockerfile_tmp + docker build -t $TEST_IMAGE - <