From a95227aa96353db2ee8f9558993e5879b815e8a1 Mon Sep 17 00:00:00 2001 From: Ian Eaves Date: Tue, 12 Mar 2024 12:11:42 -0500 Subject: [PATCH] stop container before checkout --- .github/workflows/integration-cube-ci.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/integration-cube-ci.yml b/.github/workflows/integration-cube-ci.yml index 0c4dcf405..28065676b 100644 --- a/.github/workflows/integration-cube-ci.yml +++ b/.github/workflows/integration-cube-ci.yml @@ -88,8 +88,19 @@ jobs: CUBEJS_DS_GRAI_DB_PASS: grai CUBEJS_DEV_MODE: true steps: + - name: Restart Cube API + uses: docker://docker + with: + args: docker stop cubeapi + - uses: actions/checkout@v4 + # This is needed so that the cubeapi loads configs from the mounted volume + - name: Restart Cube API + uses: docker://docker + with: + args: docker start cubeapi + - uses: actions/setup-python@v5 with: python-version: "${{ env.py_ver }}" @@ -98,11 +109,7 @@ jobs: with: poetry-version: "${{ env.poetry_ver }}" - # This is needed so that the cubeapi loads configs from the mounted volume - - name: Restart Cube API - uses: docker://docker - with: - args: docker restart cubeapi + - name: Set up Postgres db working-directory: ${{ env.project_dir }}/data/dev-database