Skip to content

Commit

Permalink
Remove MONGODB_USERNAME environment variable from backup scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
pdcp1 committed Aug 20, 2024
1 parent 9e9fbd2 commit b7c0f75
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/db-backup-private.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ jobs:
-e MONGODB_DBNAME="aiidprod" \
-e MONGODB_URI_TRANSLATIONS="mongodb+srv://${{ secrets.MONGO_BACKUP_USER }}:${{ secrets.MONGO_BACKUP_USER_PASSWORD }}@aiiddev-aqdmh.gcp.mongodb.net/translations" \
-e MONGODB_DBNAME_TRANSLATIONS="translations" \
-e MONGODB_USERNAME="${{ secrets.MONGO_BACKUP_USER }}" \
-e MONGODB_PASSWORD="${{ secrets.MONGO_BACKUP_USER_PASSWORD }}" \
-e MONGODB_AUTHDB="admin" \
-v ~:/mab \
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/db-backup-public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ jobs:
-e MONGODB_URI="${{ secrets.MONGODB_CONNECTION_STRING }}" \
-e MONGODB_DBNAME="aiidprod" \
-e MONGODB_DBNAME_TRANSLATIONS="translations" \
-e MONGODB_USERNAME="${{ secrets.MONGO_BACKUP_USER }}" \
-e MONGODB_PASSWORD="${{ secrets.MONGO_BACKUP_USER_PASSWORD }}" \
-e MONGODB_AUTHDB="admin" \
-v ~:/mab \
Expand Down
2 changes: 0 additions & 2 deletions docker-db-backup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ docker run --rm \
[ -e BACKUPFILE_PREFIX=<Prefix of Backup Filename (default: "backup") \ ]
[ -e MONGODB_URI=<Target MongoDB URI> \ ]
[ -e MONGODB_DBNAME=<Target DB name> \ ]
[ -e MONGODB_USERNAME=<DB login username> \ ]
[ -e MONGODB_PASSWORD=<DB login password> \ ]
[ -e MONGODB_AUTHDB=<Authentication DB name> \ ]
[ -v ~:/mab \ ]
Expand Down Expand Up @@ -68,7 +67,6 @@ Environment variables
| BACKUPFILE_PREFIX | Prefix of Backup Filename | "backup" |
| MONGODB_URI | Target MongoDB URI (ex. `mongodb://mongodb?replicaSet=rs0`). If set, the other `MONGODB_*` variables will be ignored. | - |
| MONGODB_DBNAME | Target DB name | - |
| MONGODB_USERNAME | DB login username | - |
| MONGODB_PASSWORD | DB login password | - |
| MONGODB_AUTHDB | Authentication DB name | - |
| CRONMODE | If set "true", this container is executed in cron mode. In cron mode, the script will be executed with the specified arguments and at the time specified by CRON_EXPRESSION. | "false" |
Expand Down

0 comments on commit b7c0f75

Please sign in to comment.