Skip to content

Commit

Permalink
feat: wip deploy script for compose
Browse files Browse the repository at this point in the history
  • Loading branch information
sanriodev committed Aug 30, 2024
1 parent b9ef5da commit defa722
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
script_stop: true
script: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
cd bingusboingus
cd energy-householder
docker compose pull
docker compose up -d
Expand Down
10 changes: 10 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
cat << EOF
******************************
* ENERGY / PROJECT LAUNCHER *
******************************
EOF
docker login ghcr.io -u $ --password-stdin
docker compose pull
docker compose -f docker-compose.yml up -d $@
10 changes: 5 additions & 5 deletions infra/mongo/.env.sample
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
MONGO_INITDB_ROOT_USERNAME=energy-householder
MONGO_INITDB_ROOT_PASSWORD=energy-householder
MONGO_USER=energy-householder
MONGO_PASSWORD=energy-householder
MONGO_INITDB_DATABASE=modbus-readings
MONGO_INITDB_ROOT_USERNAME=
MONGO_INITDB_ROOT_PASSWORD=
MONGO_USER=
MONGO_PASSWORD=
MONGO_INITDB_DATABASE=

0 comments on commit defa722

Please sign in to comment.