File tree 4 files changed +35
-0
lines changed
4 files changed +35
-0
lines changed Original file line number Diff line number Diff line change 13
13
DOCKER_BUILDKIT : 1
14
14
KAMAL_REGISTRY_PASSWORD : ${{ secrets.GITHUB_TOKEN }}
15
15
KAMAL_REGISTRY_USERNAME : ${{ github.actor }}
16
+ R2_ACCESS_KEY_ID : ${{ secrets.R2_ACCESS_KEY_ID }}
17
+ R2_SECRET_ACCESS_KEY : ${{ secrets.R2_SECRET_ACCESS_KEY }}
16
18
17
19
jobs :
18
20
build-and-deploy :
Original file line number Diff line number Diff line change 6
6
KAMAL_REGISTRY_PASSWORD=$KAMAL_REGISTRY_PASSWORD
7
7
KAMAL_REGISTRY_USERNAME=$KAMAL_REGISTRY_USERNAME
8
8
9
+ R2_ACCESS_KEY_ID=$R2_ACCESS_KEY_ID
10
+ R2_SECRET_ACCESS_KEY=$R2_SECRET_ACCESS_KEY
11
+
9
12
# Option 2: Read secrets via a command
10
13
# RAILS_MASTER_KEY=$(cat config/master.key)
11
14
Original file line number Diff line number Diff line change @@ -33,3 +33,15 @@ builder:
33
33
34
34
volumes :
35
35
- " /opt/docker/BlazorDiffusionVue/App_Data:/app/App_Data"
36
+
37
+ accessories :
38
+ litestream :
39
+ roles : ["web"]
40
+ image : litestream/litestream
41
+ files : ["config/litestream.yml:/etc/litestream.yml"]
42
+ volumes : ["/opt/docker/BlazorDiffusionVue/App_Data:/data"]
43
+ cmd : replicate
44
+ env :
45
+ secret :
46
+ - R2_ACCESS_KEY_ID
47
+ - R2_SECRET_ACCESS_KEY
Original file line number Diff line number Diff line change
1
+ access-key-id : $R2_ACCESS_KEY_ID
2
+ secret-access-key : $R2_SECRET_ACCESS_KEY
3
+
4
+ dbs :
5
+ - path : /data/db.sqlite
6
+ replicas :
7
+ - type : s3
8
+ bucket : diffusion-server-backup
9
+ path : db.sqlite
10
+ region : auto
11
+ endpoint : https://b95f38ca3a6ac31ea582cd624e6eb385.r2.cloudflarestorage.com
12
+ - path : /data/analytics.sqlite
13
+ replicas :
14
+ - type : s3
15
+ bucket : diffusion-server-backup
16
+ path : analytics.sqlite
17
+ region : auto
18
+ endpoint : https://b95f38ca3a6ac31ea582cd624e6eb385.r2.cloudflarestorage.com
You can’t perform that action at this time.
0 commit comments