Skip to content

Production

Production #5

Workflow file for this run

name: Production
on:
release:
types: [created]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Prepare Remote
uses: appleboy/[email protected]
with:
host: services.podlove.org
username: root
key: ${{ secrets.PRODUCTION_SSH_KEY }}
script: |
mkdir -p app
cd app
git ls-remote [email protected]:podlove/publisher-services.git -q || git clone [email protected]:podlove/publisher-services.git .
git reset --hard ${{ github.sha }}
- name: Deploy to production environment
uses: appleboy/[email protected]
env:
SHA: ${{ github.sha }}
VITE_BUILD: ${{ github.sha }}
with:
host: services.podlove.org
username: root
key: ${{ secrets.PRODUCTION_SSH_KEY }}
envs: SHA,VITE_BUILD
script: |
cd app
git fetch
git reset --hard $SHA
devbox install
devbox services down
devbox run bootstrap
devbox run build
devbox services up --background