-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (38 loc) · 1.08 KB
/
cd.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
41
42
43
name: Latest tag deploy
permissions:
id-token: write
contents: read
on:
push:
tags:
- 'v*'
jobs:
deploy-quicktube:
name: Deploy Quicktube
concurrency:
group: production_environment
cancel-in-progress: true
runs-on: ubuntu-latest
environment:
name: production
url: https://quicktube.app
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.workflow_run.head_branch }}
- uses: ./.github/workflows/setup
name: Setup
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Kamal Deploy
uses: igor-alexandrov/kamal-deploy@v0.3.0
with:
registry-username: ${{ secrets.KAMAL_REGISTRY_USERNAME }}
registry-password: ${{ secrets.KAMAL_REGISTRY_PASSWORD }}
env:
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
HOST_IP: ${{ vars.HOST_IP }}
KAMAL_PROXY_HOST: ${{ vars.KAMAL_PROXY_HOST }}
SSH_USER: ${{ vars.SSH_USER }}
SSH_PORT: ${{ vars.SSH_PORT }}