From cecbe36318f5fd420148ac9ed29109bccacd68cf Mon Sep 17 00:00:00 2001 From: Jake Morrison Date: Sat, 10 Feb 2024 21:00:45 -0600 Subject: [PATCH] Add seed data --- .github/workflows/ci.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3434626..fcd17b6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -837,13 +837,12 @@ jobs: # docker compose run --entrypoint /bin/bash prod env PGPASSWORD=postgres /usr/bin/psql -w -h postgres -U postgres -d postgres -c "SELECT 1" # # docker compose run --entrypoint /bin/bash prod pg_isready -h postgres -p 5432 -d postgres -U postgres - # - name: Initialize database - # # These calls assume the entrypoint is the Erlang release script, i.e., bin/ - # # They conflict with an entrypoint script that runs migrations, e.g., rel/overlays/bin/start-docker - # run: | - # # docker compose run prod eval '${{ env.ELIXIR_MODULE }}.Release.create_repos()' - # # docker compose run prod eval '${{ env.ELIXIR_MODULE }}.Release.migrate()' - # docker compose run prod eval '${{ env.ELIXIR_MODULE }}.Release.run_seeds()' + - name: Initialize database + run: | + # Rundandant with bin/start-docker + # docker compose run prod eval '${{ env.ELIXIR_MODULE }}.Release.create_repos()' + # docker compose run prod eval '${{ env.ELIXIR_MODULE }}.Release.migrate()' + docker compose run --entrypoint bin/prod prod eval '${{ env.ELIXIR_MODULE }}.Release.run_seeds()' # Basic smoke test to make sure service came up - name: Run health check