Skip to content

Commit 8ea9a3e

Browse files
committed
chore: update deploy.yml and kamal-deploy.yml for linklift-api service and environment variable integration
1 parent d73e6d5 commit 8ea9a3e

File tree

3 files changed

+53
-5
lines changed

3 files changed

+53
-5
lines changed

.github/workflows/kamal-deploy.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
id-token: write
2626
env:
2727
DOCKER_BUILDKIT: 1
28+
KAMAL_REGISTRY_USERNAME: ${{ secrets.KAMAL_REGISTRY_USERNAME }}
2829
KAMAL_REGISTRY_PASSWORD: ${{ secrets.KAMAL_REGISTRY_PASSWORD }}
2930
HOST_IP: ${{ secrets.HOST_IP }}
3031
steps:
@@ -49,11 +50,12 @@ jobs:
4950
password: ${{ secrets.GITHUB_TOKEN }}
5051
- uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
5152
- uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
53+
- uses: crazy-max/ghaction-github-runtime@3cb05d89e1f492524af3d41a1c98c83bc3025124 # v3.1.0
5254

5355
- name: Deploy
5456
run: |
5557
echo "------------------------"
56-
echo "Deliver image to env ${{ github.event.inputs.env }}"
58+
echo "Deliver image to env (ignored) ${{ github.event.inputs.env }}"
5759
echo "------------------------"
5860
kamal deploy
5961
echo "------------------------"

config/deploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
service: linklift
1+
service: linklift-api
22

3-
image: arcadedata/linklift
3+
image: robfrank/linklift-api
44

55
servers:
66
web:
77
- <%= ENV["HOST_IP"] %>
88

99
proxy:
1010
ssl: false
11-
host: linklift.arcadebrain.ai
11+
host: linklift-api.arcadebrain.ai
1212
app_port: 7070
1313
healthcheck:
1414
path: /up
@@ -28,7 +28,7 @@ builder:
2828
arch: amd64
2929
env:
3030
clear:
31-
JAVA_OPTS: "-Xmx8G -Dlinklift.arcadedb.host=linklift-arcadedb"
31+
JAVA_OPTS: "-Xmx2G -Dlinklift.arcadedb.host=linklift-arcadedb"
3232

3333
ssh:
3434
user: player

webapp/config/deploy.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
service: linklift
2+
3+
image: robfrank/linklift
4+
5+
servers:
6+
web:
7+
- <%= ENV["HOST_IP"] %>
8+
9+
proxy:
10+
ssl: false
11+
host: linklift.arcadebrain.ai
12+
app_port: 80
13+
healthcheck:
14+
path: /up
15+
16+
# Credentials for your image host.
17+
registry:
18+
# Specify the registry server, if you're not using Docker Hub
19+
server: ghcr.io
20+
username: robfrank
21+
22+
# Always use an access token rather than real password (pulled from .kamal/secrets).
23+
password:
24+
- KAMAL_REGISTRY_PASSWORD
25+
26+
# Configure builder setup.
27+
builder:
28+
arch: amd64
29+
env:
30+
clear:
31+
JAVA_OPTS: "-Xmx2G -Dlinklift.arcadedb.host=linklift-arcadedb"
32+
33+
ssh:
34+
user: player
35+
36+
accessories:
37+
arcadedb:
38+
image: arcadedata/arcadedb-headless:25.4.1
39+
host: <%= ENV["HOST_IP"] %>
40+
volumes:
41+
- /home/player/linklift/config:/home/arcadedb/config
42+
- /home/player/linklift/databases:/home/arcadedb/databases
43+
- /home/player/linklift/log:/home/arcadedb/log
44+
env:
45+
clear:
46+
JAVA_OPTS: "-Darcadedb.server.plugins=Postgres:com.arcadedb.postgres.PostgresProtocolPlugin"

0 commit comments

Comments
 (0)