Skip to content

yarn instead of npm for consistency in all env. Back to IP base for d… #12

yarn instead of npm for consistency in all env. Back to IP base for d…

yarn instead of npm for consistency in all env. Back to IP base for d… #12

Workflow file for this run

name: Deploy to staging
on:
push:
branches: [ main ]
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Set up Ruby
uses: ruby/[email protected]
with:
ruby-version: .ruby-version
bundler-cache: true
- name: Configure SSH
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Add server to known_hosts
run: |
mkdir -p ~/.ssh
ssh-keyscan -H ${{ secrets.STAGING_HOST }} >> ~/.ssh/known_hosts
- name: Set up Docker Buildx
id: buildx
uses: docker/[email protected]
- name: Deploy with Kamal
env:
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
KAMAL_REGISTRY_PASSWORD: ${{ secrets.KAMAL_REGISTRY_PASSWORD }}
VERSION: ${{ github.sha }}
run: bundle exec kamal deploy --version=$VERSION