-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (36 loc) · 1.11 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Deploy
concurrency:
group: production
cancel-in-progress: true
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
env:
DOCKER_BUILDKIT: 1
RAILS_ENV: production
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
DOCKER_REGISTRY_TOKEN: ${{ secrets.DOCKER_REGISTRY_TOKEN }}
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}
BUNDLE_GITHUB__COM: ${{ secrets.BUNDLE_GITHUB__COM }}
BUNDLE_PACKAGES__NOCOFFEE__FR: ${{ secrets.BUNDLE_GITHUB__COM }}
MAGLEV_ADMIN_USERNAME: ${{ secrets.MAGLEV_ADMIN_USERNAME }}
MAGLEV_ADMIN_PASSWORD: ${{ secrets.MAGLEV_ADMIN_PASSWORD }}
RAILS_SERVE_STATIC_FILES: true
RAILS_LOG_TO_STDOUT: true
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.3
bundler-cache: true
- run: gem install kamal
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- uses: docker/setup-buildx-action@v3
- run: kamal lock release
- run: kamal redeploy