Skip to content

Commit

Permalink
stop container before checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
ieaves committed Mar 12, 2024
1 parent d62aed1 commit a95227a
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/integration-cube-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand All @@ -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
Expand Down

0 comments on commit a95227a

Please sign in to comment.