Skip to content

ci: add staging environment #7

ci: add staging environment

ci: add staging environment #7

Workflow file for this run

name: Staging
on:
push:
branches:
- feat/staging
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy to staging environment
uses: appleboy/[email protected]
env:
SHA: ${{ github.sha }}
with:
host: publisher.podlove.dev
username: root
key: ${{ secrets.STAGING_SSH_KEY }}
envs: SHA
script: |
cd app
git fetch
git reset --hard $GITHUB_SHA
devbox install
devbox run build
devbox services down
devbox services up