Skip to content

try to fix the CD (#2) #32

try to fix the CD (#2)

try to fix the CD (#2) #32

Workflow file for this run

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_PACKAGES__NOCOFFEE__FR }}
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