Deploy to production #39
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
name: Deploy to production | |
on: workflow_dispatch | |
jobs: | |
deploy: | |
# Defines the type of runner the job runs on | |
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 | |
# 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 |