Skip to content

Commit

Permalink
fix(back): set Docker images tags and fix migrations folder name
Browse files Browse the repository at this point in the history
  • Loading branch information
presedo93 committed Oct 8, 2024
1 parent 183c930 commit cf7aacd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/go-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

services:
postgres:
image: postgres:16.4-alpine
image: postgres:17.0
env:
POSTGRES_USER: rendres
POSTGRES_PASSWORD: s3cr3t
Expand All @@ -22,7 +22,7 @@ jobs:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-interval 5s
--health-timeout 5s
--health-retries 5
Expand Down
4 changes: 2 additions & 2 deletions back/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ dropdb:
docker compose exec postgres dropdb -U rendres wedding

migrateup:
migrate -path db/migration -database "$(DB_URL)" -verbose up 1
migrate -path db/migrations -database "$(DB_URL)" -verbose up

migratedown:
migrate -path db/migration -database "$(DB_URL)" -verbose down 1
migrate -path db/migrations -database "$(DB_URL)" -verbose down 1

sqlc:
sqlc generate
Expand Down
4 changes: 2 additions & 2 deletions compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
postgres:
image: postgres:latest
image: postgres:17.0
restart: always
environment:
POSTGRES_USER: rendres
Expand All @@ -21,7 +21,7 @@ services:
depends_on:
postgres:
condition: service_healthy
image: svhd/logto:latest
image: svhd/logto:1.20
entrypoint: ["sh", "-c", "npm run cli db seed -- --swe && npm start"]
ports:
- 3001:3001
Expand Down

0 comments on commit cf7aacd

Please sign in to comment.