Skip to content

Commit

Permalink
update build actions
Browse files Browse the repository at this point in the history
  • Loading branch information
iandday committed Apr 27, 2024
1 parent 625cc52 commit aed5c03
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,3 @@ ENABLE_REGISTRATION=
MEDIA_PATH=
ADMIN_PASSWORD=
ADMIN_EMAIL=
ADMIN_FIRST_NAME=
ADMIN_LAST_NAME=
4 changes: 4 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ jobs:
uses: docker/build-push-action@v5
with:
context: ./
build-args: |
"VITE_BACKEND_URL=https://plant.ianday.me"
"VITE_PAGE_TITLE=Plant Tracker"
"BASE=/static"
file: ./Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ services:
- ./media:/media
- ./static:/static
environment:
- DATABASE_URL=psql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}
- SECRET_KEY=${SECRET_KEY}
- JWT_SIGNING_KEY=${JWT_SIGNING_KEY}
- JWT_ACCESS_TOKEN_LIFETIME_MINUTES=${JWT_ACCESS_TOKEN_LIFETIME_MINUTES}
Expand All @@ -44,6 +43,7 @@ services:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_HOST=db
- POSTGRES_PORT=5432
- DATABASE_URL=psql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}
db:
image: postgres:14.5
ports:
Expand Down

0 comments on commit aed5c03

Please sign in to comment.