File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 6
6
7
7
To run this project, you will need the following environment variables
8
8
9
+ ** Required:**
9
10
` GH_ORG `
10
11
11
12
` GH_USER `
12
13
13
14
` GH_PASS `
14
15
16
+ ** Optional:**
17
+ ` S3_BUCKET ` - If provided, backups will be configured to use S3 storage
18
+
15
19
## Usage/Examples
16
20
17
21
``` shell
@@ -21,3 +25,13 @@ docker run -v ${LOCAL_BACKUP_DIRECTORY}:/opt/scm-backup/backup \
21
25
-e GH_ORG=org \
22
26
juroapp/scm-backup
23
27
```
28
+
29
+ ** With S3 backup enabled:**
30
+ ``` shell
31
+ docker run -v ${LOCAL_BACKUP_DIRECTORY} :/opt/scm-backup/backup \
32
+ -e GH_USER=username \
33
+ -e GH_PASS=app_password \
34
+ -e GH_ORG=org \
35
+ -e S3_BUCKET=my-backup-bucket \
36
+ juroapp/scm-backup
37
+ ```
Original file line number Diff line number Diff line change @@ -12,6 +12,11 @@ yq e -i '
12
12
.name = env(GH_ORG)
13
13
| .authName = env(GH_USER)
14
14
)
15
+ | if has("S3_BUCKET") then
16
+ .options.backup.s3BucketName = env(S3_BUCKET)
17
+ else
18
+ .
19
+ end
15
20
' settings.yml
16
21
17
22
exec dotnet ScmBackup.dll
You can’t perform that action at this time.
0 commit comments