Skip to content

fix: use server IP for Kamal deployment behind Cloudflare proxy #21

fix: use server IP for Kamal deployment behind Cloudflare proxy

fix: use server IP for Kamal deployment behind Cloudflare proxy #21

Workflow file for this run

name: Deploy
permissions:
id-token: write
contents: read
on:
workflow_dispatch:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
bundler-cache: true
- name: Install Kamal
run: |
gem install kamal -v 2.2.2
- uses: webfactory/ssh-agent@v0.7.0
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Deploy
env:
DOCKER_REGISTRY_PASSWORD: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
DOCKER_REGISTRY_USERNAME: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
API_URL: ${{ secrets.API_URL }}
API_USERNAME: ${{ secrets.API_USERNAME }}
API_PASSWORD: ${{ secrets.API_PASSWORD }}
TRUSTED_CLIENTS: ${{ secrets.TRUSTED_CLIENTS }}
SERVER_IP: ${{ secrets.SERVER_IP }}
run: |
kamal deploy