Skip to content

dep: adds ned protocol to Gemfile #3

dep: adds ned protocol to Gemfile

dep: adds ned protocol to Gemfile #3

Workflow file for this run

name: Deploy to DigitalOcean
on:
push:
tags:
- '*'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up SSH
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Deploy to DigitalOcean
run: |
ssh -o StrictHostKeyChecking=no ${{ secrets.DO_USERNAME }}@${{ secrets.DO_SERVER_IP }} << 'EOF'
sudo git config --global --add safe.directory /var/www/pet-tag-generator
cd /var/www/pet-tag-generator
git fetch --tags
git checkout $(git describe --tags `git rev-list --tags --max-count=1`)
bundle config set deployment true
bundle config set without 'development test'
bundle update net-pop
bundle install
rails db:migrate RAILS_ENV=production
RAILS_ENV=production bundle exec rake assets:precompile
sudo systemctl restart puma
EOF