Skip to content

Commit

Permalink
[NS-47] - Testing local server deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Narvane committed Mar 13, 2024
1 parent 5138531 commit 11fca59
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,24 @@ jobs:

- name: Push Docker image to GitHub Packages
run: docker push docker.pkg.github.com/narvane/my-storage/my-storage-image:${{ github.event.release.tag_name }}
deploy:
runs-on: ubuntu-latest

steps:
- name: Install sshpass
run: sudo apt-get install -y sshpass

- name: SSH into Server and deploy
run: |
sshpass -p ${{ secrets.SERVER_PASSWORD }} ssh -o StrictHostKeyChecking=no ${{ secrets.SERVER_USERNAME }}@${{ secrets.SERVER_HOST }} '
cd /my-routine/my-storage/k8s &&
rm -rf /my-storage/k8s &&
git clone https://github.com/Narvane/my-storage.git k8s &&
cd k8s &&
git config core.sparseCheckout true &&
echo "/my-routine/my-storage/k8s/*" >> .git/info/sparse-checkout &&
git pull origin master
'
# publish:
# runs-on: ubuntu-latest
#
Expand Down

0 comments on commit 11fca59

Please sign in to comment.