Skip to content

Commit

Permalink
fix: update GitHub Actions workflow permissions and modify volume pat…
Browse files Browse the repository at this point in the history
…h in docker-compose.yml
  • Loading branch information
Ganthepro committed Nov 27, 2024
1 parent c6ccf9f commit 550dfd2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: Build and deploy to an VM

on:
push:
push:
branches:
- dev
workflow_dispatch:

permissions:
contents: read
contents: write

jobs:
build-and-deploy:
Expand Down Expand Up @@ -38,7 +38,6 @@ jobs:
echo "ADMIN_EMAIL=${{ secrets.ADMIN_EMAIL }}" >> .env
echo "ADMIN_PASSWORD=${{ secrets.ADMIN_PASSWORD }}" >> .env
echo "AI_URL=${{ secrets.AI_URL }}" >> .env
echo "VOLUMES_PATH=${{ secrets.VOLUMES_PATH }}" >> .env
cat .env
- name: Running Docker Compose
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_DATABASE}
volumes:
- ${VOLUMES_PATH}:/var/lib/postgresql/data
- ./postgres-data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U ${DB_USERNAME}']
interval: 10s
Expand Down

0 comments on commit 550dfd2

Please sign in to comment.