-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a522db2
commit eebf837
Showing
5 changed files
with
55 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Production | ||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Prepare Remote | ||
uses: appleboy/ssh-action@v1.0.3 | ||
with: | ||
host: services.podlove.org | ||
username: root | ||
key: ${{ secrets.PRODUCTION_SSH_KEY }} | ||
script: | | ||
mkdir -p app | ||
cd app | ||
[ ! -d ".git" ] && git clone git@github.com:podlove/publisher-services.git . | ||
- name: Deploy to production environment | ||
uses: appleboy/ssh-action@v1.0.3 | ||
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 |
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
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
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
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