Skip to content

Enable 7.2 defaults #319

Enable 7.2 defaults

Enable 7.2 defaults #319

Workflow file for this run

name: CD
on:
push:
branches: [main]
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Configure SSH
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
known_hosts: ${{ vars.KNOWN_HOSTS }}
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Setup Docker
uses: docker/setup-buildx-action@v3
- uses: crazy-max/ghaction-github-runtime@v3
- name: Get credentials from Heroku
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
run: |
curl https://cli-assets.heroku.com/install-ubuntu.sh | sudo sh
REDIS_URL=$(heroku config:get REDIS_URL -a hackathons)
echo "REDIS_URL=${REDIS_URL}" >> $GITHUB_ENV
- name: Deploy to production!
run: bundle exec kamal deploy
env:
KAMAL_REGISTRY_USERNAME: ${{ github.actor }}
KAMAL_REGISTRY_PASSWORD: ${{ github.token }}
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}