Skip to content

Deploy production (manual) #3

Deploy production (manual)

Deploy production (manual) #3

Workflow file for this run

name: Deploy production (manual)
on:
workflow_dispatch:
jobs:
deploy:
environment: production
concurrency: production
runs-on: ubuntu-latest
steps:
- name: Add SSH key
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: |
mkdir -p /home/runner/.ssh
ssh-keyscan sewera.dev >> /home/runner/.ssh/known_hosts
echo "${{ secrets.BLOG_PROD_KEY }}" > /home/runner/.ssh/github_actions
chmod 600 /home/runner/.ssh/github_actions
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
ssh-add /home/runner/.ssh/github_actions
- name: Deploy to production
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: |
ssh -i /home/runner/.ssh/github_actions \
${{ secrets.BLOG_PROD_USER }}@sewera.dev \
'./MANUAL_DEPLOY_BLOG'