File tree Expand file tree Collapse file tree 3 files changed +66
-15
lines changed
Expand file tree Collapse file tree 3 files changed +66
-15
lines changed Original file line number Diff line number Diff line change 1- name : Deploy
1+ name : Deploy API
22concurrency :
33 group : production
44 cancel-in-progress : true
1313 options :
1414 - staging
1515 - prod
16- run-name : Deploy to ${{ inputs.env }}
16+ run-name : Deploy API to ${{ inputs.env }}
1717
1818jobs :
1919 deploy :
5252 - uses : docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
5353 - uses : crazy-max/ghaction-github-runtime@3cb05d89e1f492524af3d41a1c98c83bc3025124 # v3.1.0
5454
55- - name : Deploy
55+ - name : Deploy API
5656 run : |
5757 echo "------------------------"
5858 echo "Deliver image to env (ignored) ${{ github.event.inputs.env }}"
Original file line number Diff line number Diff line change 1+ name : Deploy Webapp
2+ concurrency :
3+ group : production
4+ cancel-in-progress : true
5+ on :
6+ workflow_dispatch :
7+ inputs :
8+ env :
9+ description : " Environment to deploy to"
10+ required : true
11+ default : " staging"
12+ type : choice
13+ options :
14+ - staging
15+ - prod
16+ run-name : Deploy Webapp to ${{ inputs.env }}
17+
18+ jobs :
19+ deploy :
20+ runs-on : ubuntu-latest
21+ permissions :
22+ contents : read
23+ packages : write
24+ attestations : write
25+ id-token : write
26+ env :
27+ DOCKER_BUILDKIT : 1
28+ KAMAL_REGISTRY_USERNAME : ${{ secrets.KAMAL_REGISTRY_USERNAME }}
29+ KAMAL_REGISTRY_PASSWORD : ${{ secrets.KAMAL_REGISTRY_PASSWORD }}
30+ HOST_IP : ${{ secrets.HOST_IP }}
31+ steps :
32+ - uses : actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
33+
34+ - name : Install Kamal
35+ uses : ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
36+ with :
37+ ruby-version : 3.4.1
38+ bundler-cache : true
39+ - run : gem install kamal
40+
41+ - uses : webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1
42+ with :
43+ ssh-private-key : ${{ secrets.SSH_PRIVATE_KEY }}
44+
45+ - name : Log in to the ghcr.io
46+ uses : docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
47+ with :
48+ registry : ghcr.io
49+ username : ${{ github.actor }}
50+ password : ${{ secrets.GITHUB_TOKEN }}
51+ - uses : docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0
52+ - uses : docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
53+ - uses : crazy-max/ghaction-github-runtime@3cb05d89e1f492524af3d41a1c98c83bc3025124 # v3.1.0
54+
55+ - name : Deploy Webapp
56+ working-directory : ./webapp
57+ run : |
58+ echo "------------------------"
59+ echo "Deliver image to env (ignored) ${{ github.event.inputs.env }}"
60+ echo "------------------------"
61+ kamal deploy
62+ echo "------------------------"
63+ kamal details
Original file line number Diff line number Diff line change 3232
3333ssh :
3434 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"
You can’t perform that action at this time.
0 commit comments