File tree 5 files changed +38
-16
lines changed
5 files changed +38
-16
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 5
5
# Option 1: Read secrets from the environment
6
6
KAMAL_REGISTRY_PASSWORD=$KAMAL_REGISTRY_PASSWORD
7
7
KAMAL_REGISTRY_USERNAME=$KAMAL_REGISTRY_USERNAME
8
+ R2_ACCESS_KEY_ID=$R2_ACCESS_KEY_ID
9
+ R2_SECRET_ACCESS_KEY=$R2_SECRET_ACCESS_KEY
8
10
9
11
# Option 2: Read secrets via a command
10
12
# RAILS_MASTER_KEY=$(cat config/master.key)
Original file line number Diff line number Diff line change 12
12
</ItemGroup >
13
13
14
14
<ItemGroup >
15
- <ContainerLabel Include =" service" Value =" creatorkit" />
15
+ <ContainerLabel Include =" service" Value =" creatorkit.servicestack.net " />
16
16
</ItemGroup >
17
17
18
18
<ItemGroup >
Original file line number Diff line number Diff line change 1
1
# Name of your application. Used to uniquely configure containers.
2
- service : creatorkit
2
+ service : creatorkit.servicestack.net
3
3
4
4
# Name of the container image.
5
- image : netcoreapps /creatorkit
5
+ image : servicestack /creatorkit
6
6
7
7
# Required for use of ASP.NET Core with Kamal-Proxy.
8
8
env :
@@ -21,7 +21,7 @@ servers:
21
21
# in Cloudflare's SSL/TLS setting to "Full" to enable end-to-end encryption.
22
22
proxy :
23
23
ssl : true
24
- host : creatorkit.netcore.io
24
+ host : creatorkit.servicestack.net
25
25
# kamal-proxy connects to your container over port 80, use `app_port` to specify a different port.
26
26
app_port : 8080
27
27
@@ -43,14 +43,14 @@ builder:
43
43
volumes :
44
44
- " /opt/docker/CreatorKit/App_Data:/app/App_Data"
45
45
46
- # accessories:
47
- # litestream:
48
- # roles: ["web"]
49
- # image: litestream/litestream
50
- # files: ["config/litestream.yml:/etc/litestream.yml"]
51
- # volumes: ["/opt/docker/CreatorKit/App_Data:/data"]
52
- # cmd: replicate
53
- # env:
54
- # secret:
55
- # - ACCESS_KEY_ID
56
- # - SECRET_ACCESS_KEY
46
+ accessories :
47
+ litestream :
48
+ roles : ["web"]
49
+ image : litestream/litestream
50
+ files : ["config/litestream.yml:/etc/litestream.yml"]
51
+ volumes : ["/opt/docker/CreatorKit/App_Data:/data"]
52
+ cmd : replicate
53
+ env :
54
+ secret :
55
+ - R2_ACCESS_KEY_ID
56
+ - 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 : creator-kit-prod
9
+ path : db.sqlite
10
+ region : auto
11
+ endpoint : https://b95f38ca3a6ac31ea582cd624e6eb385.r2.cloudflarestorage.com
12
+
13
+
14
+
15
+
16
+
17
+
18
+
You can’t perform that action at this time.
0 commit comments