Skip to content

Commit

Permalink
Update dev.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmy0006 authored Jul 16, 2024
1 parent 6f31135 commit 6f23fee
Showing 1 changed file with 13 additions and 16 deletions.
29 changes: 13 additions & 16 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,19 @@ jobs:
uses: appleboy/[email protected]
with:
host: ${{ secrets.DEV_HOST }}
username: ${{ secrets.SERVER_USER }}
password: ${{ secrets.SSH_PASSWORD }}
username: ${{ secrets.DEV_USER }}
key: ${{ secrets.DEV_KEY }}
port: ${{ secrets.SSH_PORT }}
source: "./build/libs/*.jar"
target: /home/ubuntu/palkiabuilds/
# - name: restart server
# uses: appleboy/[email protected]
# with:
# host: ${{ secrets.SERVER_HOST }}
# username: ${{ secrets.SERVER_USER }}
# password: ${{ secrets.SSH_PASSWORD }}
# key: ${{ secrets.KEY }}
# port: ${{ secrets.SSH_PORT }}
# script: |
# cd dockercompose/palkia
# docker compose down
# docker compose up -d --build

target: /home/jimmy/k8s/palkia/
- name: restart server
uses: appleboy/[email protected]
with:
host: ${{ secrets.DEV_HOST }}
username: ${{ secrets.DEV_USER }}
key: ${{ secrets.DEV_KEY }}
port: ${{ secrets.SSH_PORT }}
script: |
kubectl delete deployment palkia-deployment
kubectl apply -f palkia-deployment.yaml
kubectl rollout status deployment/palkia-deployment

0 comments on commit 6f23fee

Please sign in to comment.