ci: add staging environment #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |