Skip to content

photo policy

photo policy #107

name: Staging Deployment Workflow
on:
push:
branches: [staging]
jobs:
deploy_job:
runs-on: ubuntu-latest
steps:
- name: deploy to staging server with ssh
uses: appleboy/ssh-action@master
with:
host: ${{secrets.STAGING_HOST}}
username: ${{secrets.STAGING_USER}}
key: ${{secrets.STAGING_SSH_KEY}}
port: ${{secrets.STAGING_PORT}}
script: |
sudo -u cosmos sh ~/deploy.sh
sudo systemctl restart gunicorn nginx
- name: wait for restart
run: sleep 10
- name: check status code
uses: lakuapik/gh-actions-http-status@v1
with:
sites: '["https://cosmos.mkabel.xyz"]'
expected: "[200]"