Skip to content

Commit

Permalink
fix psql init filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
sidpalas committed Jul 17, 2024
1 parent e36668f commit 51ca9f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 06-demo-application/postgresql/Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ tasks:
cmds:
- |
CONTAINER_ID=$(docker ps -q --filter "ancestor=postgres:16.3-alpine")
docker cp ./migrations/init.sql $CONTAINER_ID:/tmp/
docker exec $CONTAINER_ID psql -U "postgres" -f /tmp/init.sql
docker cp ./migrations/000001_create_users_table.up.sql $CONTAINER_ID:/tmp/
docker exec $CONTAINER_ID psql -U "postgres" -f /tmp/000001_create_users_table.up.sql
build-container-image:
desc: Build container image
Expand Down

0 comments on commit 51ca9f0

Please sign in to comment.