-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3706 from ONE-F-M/staging
feat: Attendance ONEFM
- Loading branch information
Showing
64 changed files
with
6,907 additions
and
4,774 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,36 @@ | ||
name: Deploy CI/CD to Attendance | ||
|
||
on: | ||
push: # tells github to run this on any push to the repository | ||
branches: | ||
- attendance | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 90 | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
- name: Deploy to Attendance | ||
uses: appleboy/ssh-action@master | ||
with: | ||
host: ${{ secrets.STAGING_HOST }} | ||
username: ${{ secrets.USERNAME }} | ||
key: ${{ secrets.STAGING_KEY }} | ||
port: 22 | ||
script: | | ||
cd /home/frappe/attendance-bench/apps/one_fm # we move into our app's folder | ||
# git pull upstream attendance # we pull any changes from git | ||
git pull | ||
cd /home/frappe | ||
pip3 install --upgrade attendance-bench | ||
cd /home/frappe/attendance-bench | ||
bench setup requirements one_fm | ||
bench migrate # sync database | ||
bench restart #${{secrets.PASSKEY}} | ||
# we remove any unused dependencies | ||
bench doctor |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.