diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3b820e7..303f127 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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: @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index 03bbcbb..72ca334 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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