From b6b0821810bb2c102a55d01f4e8c5607c8fa7151 Mon Sep 17 00:00:00 2001 From: Steven Bal Date: Fri, 3 Jan 2025 11:05:01 +0100 Subject: [PATCH] :green_heart: [maykinmedia/objects-api#509] Use correct branch in quickstart job --- .github/workflows/quick_start.yml | 9 ++++++--- docker-compose.yml | 1 + 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/quick_start.yml b/.github/workflows/quick_start.yml index 91f0baa..4d5fa1b 100644 --- a/.github/workflows/quick_start.yml +++ b/.github/workflows/quick_start.yml @@ -7,10 +7,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Download docker-compose file - # todo replace branch name with master after the change is merge - run: wget https://raw.githubusercontent.com/maykinmedia/objecttypes-api/feature/merge-docker-composes/docker-compose.yml + run: wget https://raw.githubusercontent.com/maykinmedia/objecttypes-api/${GITHUB_REF_NAME}/docker-compose.yml + - name: Download setup-configuration data file + run: wget -P docker/setup_configuration https://raw.githubusercontent.com/maykinmedia/objecttypes-api/${GITHUB_REF_NAME}/docker/setup_configuration/data.yaml - name: Start docker containers - run: docker compose up -d --no-build + run: docker compose up -d --build - name: Wait for migrations to finish run: | echo "Waiting for migrations to complete..." @@ -18,6 +19,8 @@ jobs: echo "Migrations not finished, waiting..." sleep 3 done + - name: Show web-init logs + run: docker compose logs web-init - name: Load fixtures run: docker compose exec -T web src/manage.py loaddata demodata - name: Create superuser diff --git a/docker-compose.yml b/docker-compose.yml index 1e9d68c..eeac146 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -31,6 +31,7 @@ services: condition: service_completed_successfully web-init: + image: maykinmedia/objecttypes-api:latest build: . environment: <<: *app-env