Skip to content

Commit

Permalink
Pass necessary env vars to docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
kumaranvpl committed Jun 20, 2024
1 parent 6f02a07 commit c82d076
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions google-sheets-docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ services:
- "8001:8000"
environment:
- DOMAIN=${DOMAIN}
- DATABASE_URL=${DATABASE_URL}
- CLIENT_SECRET=${CLIENT_SECRET}
networks:
- google-sheets

Expand Down
2 changes: 1 addition & 1 deletion scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ $ssh_command "docker system prune -f || echo 'No images to delete'"
echo "INFO: starting docker containers"

$ssh_command "export GITHUB_REPOSITORY='$GITHUB_REPOSITORY' TAG='$TAG' container_name='$container_name' \
DOMAIN='$DOMAIN' \
DATABASE_URL='$DATABASE_URL' CLIENT_SECRET='$CLIENT_SECRET' DOMAIN='$DOMAIN' \
&& docker compose -f google-sheets-docker-compose.yaml up -d"

0 comments on commit c82d076

Please sign in to comment.