-
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
5f98319
commit 241c1e2
Showing
1 changed file
with
23 additions
and
23 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 |
---|---|---|
|
@@ -8,27 +8,27 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: rsync deployments | ||
uses: burnett01/[email protected] | ||
with: | ||
switches: -avzr --delete --exclude="" --include="" --filter="" | ||
path: client/ | ||
remote_path: ~/temp/ | ||
remote_host: ${{ secrets.SSH_HOST }} | ||
remote_port: 22 | ||
remote_user: ${{ secrets.SSH_USER }} | ||
remote_key: ${{ secrets.SSH_HEXCORE_KEY }} | ||
# - name: Deploy using ssh | ||
# uses: appleboy/ssh-action@master | ||
# - uses: actions/checkout@v3 | ||
# - name: rsync deployments | ||
# uses: burnett01/[email protected] | ||
# with: | ||
# key: ${{ secrets.SSH_HEXCORE_KEY }} | ||
# host: ${{ secrets.SSH_HOST }} | ||
# username: ${{ secrets.SSH_USER }} | ||
# port: 22 | ||
# script: | | ||
# docker login ghcr.io -u ${{ github.actor }} -p ${{ secrets.CR_TOKEN }} | ||
# docker pull ghcr.io/spooky-finn/piekerp:latest | ||
# docker stop piekerp | ||
# docker rm piekerp | ||
# docker run -d --name piekerp -p 9000:9000 --env-file ~/erp/.env ghcr.io/spooky-finn/piekerp:latest | ||
# switches: -avzr --delete --exclude="" --include="" --filter="" | ||
# path: client/ | ||
# remote_path: ~/temp/ | ||
# remote_host: ${{ secrets.SSH_HOST }} | ||
# remote_port: 22 | ||
# remote_user: ${{ secrets.SSH_USER }} | ||
# remote_key: ${{ secrets.SSH_HEXCORE_KEY }} | ||
- name: Deploy using ssh | ||
uses: appleboy/ssh-action@master | ||
with: | ||
key: ${{ secrets.SSH_HEXCORE_KEY }} | ||
host: ${{ secrets.SSH_HOST }} | ||
username: ${{ secrets.SSH_USER }} | ||
port: 22 | ||
script: | | ||
docker login ghcr.io -u ${{ github.actor }} -p ${{ secrets.CR_TOKEN }} | ||
docker pull ghcr.io/spooky-finn/piekerp:latest | ||
docker stop piekerp | ||
docker rm piekerp | ||
docker run -d --name piekerp -p 9000:9000 --env-file ~/erp/.env ghcr.io/spooky-finn/piekerp:latest |