-
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
12 changed files
with
45 additions
and
51 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 |
---|---|---|
|
@@ -56,26 +56,6 @@ jobs: | |
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
|
||
copy-repo: | ||
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: ${{ secrets.DEPLOY_PATH }} | ||
remote_host: ${{ secrets.DEPLOY_HOST }} | ||
remote_port: ${{ secrets.DEPLOY_PORT }} | ||
remote_user: ${{ secrets.DEPLOY_USER }} | ||
remote_key: ${{ secrets.DEPLOY_KEY }} | ||
|
||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -84,9 +64,9 @@ jobs: | |
env: | ||
NAME: "Root" | ||
with: | ||
hosts: '[email protected] [email protected]:2222' | ||
privateKey: ${{ secrets.PRIVATE_KEY }} | ||
hosts: '[email protected]' | ||
privateKey: ${{ secrets.CI_PRIVATE_KEY }} | ||
debug: false | ||
command: | | ||
ls -lah | ||
/usr/bin/systemctl start deploy-princetonpy.service | ||
echo "I am $NAME" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
#!/bin/sh | ||
|
||
if [ -n "$UID" ] && [ -n "$GID" ]; then | ||
usermod -u "$UID" app | ||
groupmod -g "$GID" app | ||
chown -R "$UID":"$GID" "$HOME" | ||
fi | ||
|
||
exec "$@" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
install -v -m 550 -o princeton -g princeton ./scripts/pull-image.sh /usr/local/sbin/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env bash | ||
|
||
</home/princeton/ghtoken docker login ghcr.io --username mhadam --password-stdin | ||
/usr/bin/docker pull ghcr.io/pugip/princetonpy.org:release |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
systemctl disable deploy-caddy.{path,service} | ||
systemctl disable deploy-project.{path,service} | ||
systemctl disable project.path | ||
systemctl disable deploy-princetonpy.{path,service} | ||
systemctl disable princetonpy-cron.service | ||
systemctl disable princetonpy-web.service | ||
# rm ./systemd/deploy-caddy.{path,service} |
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