Skip to content

Commit

Permalink
Update DB connection
Browse files Browse the repository at this point in the history
Signed-off-by: Tiago Góes <[email protected]>
  • Loading branch information
tiagodread committed Aug 20, 2024
1 parent 2553b14 commit 26001ca
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ jobs:
uses: hoverkraft-tech/[email protected]
env:
SHA: ${{ env.SHA }}
up-flags: "--force-recreate"

- name: Wait for containers
run: |
docker ps
docker logs -f database
docker logs database
max_attempts=3
attempt=1
Expand Down
16 changes: 8 additions & 8 deletions Dockerfile.db
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
FROM postgres

# ARG POSTGRES_USER
# ARG POSTGRES_PASSWORD
# ARG POSTGRES_DB
# ARG POSTGRES_HOST
ARG POSTGRES_USER
ARG POSTGRES_PASSWORD
ARG POSTGRES_DB
ARG POSTGRES_HOST

# ENV POSTGRES_USER=$POSTGRES_USER
# ENV POSTGRES_PASSWORD=$POSTGRES_PASSWORD
# ENV POSTGRES_DB=POSTGRES_DB
# ENV POSTGRES_HOST=$POSTGRES_HOST
ENV POSTGRES_USER=$POSTGRES_USER
ENV POSTGRES_PASSWORD=$POSTGRES_PASSWORD
ENV POSTGRES_DB=$POSTGRES_DB
ENV POSTGRES_HOST=$POSTGRES_HOST

# Executing SQL file on startup
RUN chmod 777 -R /docker-entrypoint-initdb.d/
Expand Down

0 comments on commit 26001ca

Please sign in to comment.