Skip to content

Commit

Permalink
test: ssh cd
Browse files Browse the repository at this point in the history
  • Loading branch information
spooky-finn committed Aug 19, 2023
1 parent 5f98319 commit 241c1e2
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 241c1e2

Please sign in to comment.