diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index b09a675..b440204 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -42,6 +42,7 @@ jobs: touch ./apps/backend/.env echo COUCHDB_USER=${{secrets.COUCHDB_USER}} >> ./apps/backend/.env echo COUCHDB_PASSWORD=${{secrets.COUCHDB_PASSWORD}} >> ./apps/backend/.env + cat ./apps/backend/.env - name: Build run: pnpm build --filter backend diff --git a/apps/backend/docker-compose.yml b/apps/backend/docker-compose.yml index 1b650b5..3dbca35 100644 --- a/apps/backend/docker-compose.yml +++ b/apps/backend/docker-compose.yml @@ -9,7 +9,7 @@ services: networks: - doro_network env_file: - - ./.env + - .env build: context: ./ dockerfile: Dockerfile @@ -21,8 +21,9 @@ services: - '5984:5984' networks: - doro_network - env_file: - - ./.env + environment: + COUCHDB_USER: ${COUCHDB_USER} + COUCHDB_PASSWORD: ${COUCHDB_PASSWORD} # caddy: # container_name: doro_caddy diff --git a/apps/backend/scripts/cicd.sh b/apps/backend/scripts/cicd.sh old mode 100644 new mode 100755 index f88e2c8..dc21b38 --- a/apps/backend/scripts/cicd.sh +++ b/apps/backend/scripts/cicd.sh @@ -1,4 +1,6 @@ #!/bin/sh set -e +pwd +source .env docker-compose up --build -d \ No newline at end of file