ci: add staging environment #4
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] | ||
with: | ||
host: publisher.podlove.dev | ||
username: root | ||
key: ${{ secrets.STAGING_SSH_KEY }} | ||
script: | | ||
Check failure on line 17 in .github/workflows/staging.yml GitHub Actions / StagingInvalid workflow file
|
||
cd app | ||
git fetch | ||
git reset --hard ${{ GITHUB_SHA }} | ||
devbox install | ||
devbox run build | ||
devbox services down | ||
devbox services up |