Skip to content

Commit

Permalink
Add seed data
Browse files Browse the repository at this point in the history
  • Loading branch information
reachfh committed Feb 11, 2024
1 parent aadedea commit cecbe36
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/<release-name>
# # 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
Expand Down

0 comments on commit cecbe36

Please sign in to comment.