Skip to content

Commit

Permalink
Update cicd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tryon-dev authored May 18, 2024
1 parent 3a4fb67 commit 7339a8a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
branches:
- main

jobs:
build_and_publish:
runs-on: ubuntu-latest
Expand All @@ -28,3 +29,13 @@ jobs:
docker buildx create --use
docker build . --tag ghcr.io/paxo-phone/paxo-site:latest
docker push ghcr.io/paxo-phone/paxo-site:latest
- name: Execute update script on remote server
env:
SSH_USERNAME: ${{ secrets.SSH_USERNAME }}
SSH_PASSWORD: ${{ secrets.SSH_PASSWORD }}
SSH_HOST: ${{ secrets.SSH_HOST }}
run: |
sudo apt-get update -y
sudo apt-get install -y sshpass
sshpass -p $SSH_PASSWORD ssh -o StrictHostKeyChecking=no $SSH_USERNAME@$SSH_HOST 'sh /home/debian/updatepaxosite.sh'

0 comments on commit 7339a8a

Please sign in to comment.