-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CI to master for production updates
- Loading branch information
1 parent
11944f6
commit 1f893be
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
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,19 @@ | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
deploy_prod: | ||
name: Pull latest master and redeploy prod instance | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: SSH live pull and build (same machine so correct host is dev.) | ||
uses: D3rHase/[email protected] | ||
with: | ||
host: dev.openaccessbutton.org | ||
user: ${{secrets.USER_TEST_V1}} | ||
private_key: ${{secrets.GA_ED25519}} | ||
host_fingerprint: ${{secrets.FINGERPRINT_TEST_V1}} | ||
command: cd ~/live/oaworks/embed && git pull && cd ~/live/openresearchbutton/website && git pull && npm install && node build.js && sudo nginx -s reload |