-
Notifications
You must be signed in to change notification settings - Fork 2
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
Showing
4 changed files
with
29 additions
and
37 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 |
---|---|---|
|
@@ -63,7 +63,29 @@ jobs: | |
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
|
||
deploy: | ||
copy-to-server: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Run a one-line script | ||
run: echo Hello from Octo Organization | ||
|
||
- name: rsync deployment | ||
# You may pin to the exact commit or the version. | ||
# uses: Burnett01/rsync-deployments@45d84ad5f6c174f3e0ffc50e9060a9666d09c16e | ||
uses: Burnett01/[email protected] | ||
with: | ||
switches: -avzr --delete | ||
# path: src/ | ||
# remote_path is the path under which "path" is checked out | ||
# default is repo root - top-level files/dirs | ||
remote_path: ${{ secrets.DEPLOY_PATH }} | ||
remote_host: ${{ secrets.DEPLOY_HOST }} | ||
remote_port: ${{ secrets.DEPLOY_PORT }} | ||
remote_user: ${{ secrets.DEPLOY_USER }} | ||
remote_key: ${{ secrets.CI_PRIVATE_KEY }} | ||
|
||
restart-services: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Execute SSH commmands on remote server | ||
|
@@ -75,5 +97,5 @@ jobs: | |
privateKey: ${{ secrets.CI_PRIVATE_KEY }} | ||
debug: false | ||
command: | | ||
/usr/bin/cp /home/princeton/config/.env.* /home/princeton/deployed/ | ||
/usr/bin/systemctl start deploy-princetonpy.service | ||
echo "I am $NAME" |
This file was deleted.
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
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