File tree 4 files changed +28
-12
lines changed
4 files changed +28
-12
lines changed Original file line number Diff line number Diff line change 16
16
DOCKER_BUILDKIT : 1
17
17
KAMAL_REGISTRY_PASSWORD : ${{ secrets.GITHUB_TOKEN }}
18
18
KAMAL_REGISTRY_USERNAME : ${{ github.actor }}
19
+ R2_ACCESS_KEY_ID : ${{ secrets.R2_ACCESS_KEY_ID }}
20
+ R2_SECRET_ACCESS_KEY : ${{ secrets.R2_SECRET_ACCESS_KEY }}
19
21
20
22
jobs :
21
23
release :
@@ -105,4 +107,4 @@ jobs:
105
107
- name : Deploy with Kamal
106
108
run : |
107
109
kamal lock release -v
108
- kamal deploy -P --version latest
110
+ kamal deploy -P --version latest
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ GROQ_API_KEY=$GROQ_API_KEY
10
10
MISTRAL_API_KEY=$MISTRAL_API_KEY
11
11
OPENAI_API_KEY=$OPENAI_API_KEY
12
12
OPENROUTER_API_KEY=$OPENROUTER_API_KEY
13
+ R2_ACCESS_KEY_ID=$R2_ACCESS_KEY_ID
14
+ R2_SECRET_ACCESS_KEY=$R2_SECRET_ACCESS_KEY
13
15
14
16
# Option 2: Read secrets via a command
15
17
# RAILS_MASTER_KEY=$(cat config/master.key)
Original file line number Diff line number Diff line change @@ -51,14 +51,14 @@ builder:
51
51
volumes :
52
52
- " /opt/docker/MyApp/App_Data:/app/App_Data"
53
53
54
- # accessories:
55
- # litestream:
56
- # roles: ["web"]
57
- # image: litestream/litestream
58
- # files: ["config/litestream.yml:/etc/litestream.yml"]
59
- # volumes: ["/opt/docker/MyApp /App_Data:/data"]
60
- # cmd: replicate
61
- # env:
62
- # secret:
63
- # - ACCESS_KEY_ID
64
- # - SECRET_ACCESS_KEY
54
+ accessories :
55
+ litestream :
56
+ roles : ["web"]
57
+ image : litestream/litestream
58
+ files : ["config/litestream.yml:/etc/litestream.yml"]
59
+ volumes : ["/opt/docker/ai-server /App_Data:/data"]
60
+ cmd : replicate
61
+ env :
62
+ secret :
63
+ - R2_ACCESS_KEY_ID
64
+ - 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/app.db
6
+ replicas :
7
+ - type : s3
8
+ bucket : ai-server
9
+ path : app.db
10
+ region : auto
11
+ endpoint : https://b95f38ca3a6ac31ea582cd624e6eb385.r2.cloudflarestorage.com
12
+
You can’t perform that action at this time.
0 commit comments