Skip to content

Commit e4613d5

Browse files
committed
Fix: add missing db schema to prod container
1 parent 8400324 commit e4613d5

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

Containerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ RUN apk --no-cache add ca-certificates tzdata
1616
WORKDIR /root/
1717
COPY --from=builder /go/bin/opp-auth .
1818
COPY --from=builder /go/src/app/api/openapi.yaml ./api/openapi.yaml
19+
COPY --from=builder /go/src/app/db/postgres_schema_v1.sql ./db/postgres_schema_v1.sql
1920
EXPOSE 8090
2021

2122
CMD ["./opp-auth"]

src/db/db.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ var instance *DB
2121
var once sync.Once
2222
var initErr error
2323

24-
var schemaPath = "postegres_schema_v1.sql"
24+
var schemaPath = "postgres_schema_v1.sql"
2525

2626
var OPP_AUTH_DB_HOST = os.Getenv("OPP_AUTH_DB_HOST")
2727
var OPP_AUTH_DB_PORT = os.Getenv("OPP_AUTH_DB_PORT")
File renamed without changes.

0 commit comments

Comments
 (0)