Skip to content

Commit 63f3b64

Browse files
committed
use kamal to deploy in github actions
1 parent 57833cc commit 63f3b64

File tree

2 files changed

+31
-29
lines changed

2 files changed

+31
-29
lines changed

.github/workflows/main.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: docker build and publish
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
build-and-publish:
8+
name: build and publish
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout Code
12+
uses: actions/checkout@v2
13+
14+
- uses: webfactory/[email protected]
15+
with:
16+
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
17+
18+
- name: Install Ruby
19+
uses: ruby/setup-ruby@v1
20+
with:
21+
ruby-version: '3.4.1'
22+
bundler-cache: true
23+
24+
- name: Install Kamal
25+
run: gem install kamal
26+
27+
- name: Deploy with Kamal
28+
env:
29+
KAMAL_REGISTRY_PASSWORD: ${{ secrets.KAMAL_REGISTRY_PASSWORD }}
30+
run: |
31+
kamal deploy

.github/workflows/push.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)