auto deploy

This commit is contained in:
ahmza
2024-11-26 00:53:24 +00:00
parent 00a4663ab3
commit f5af42034e
+12
View File
@@ -45,3 +45,15 @@ jobs:
tags: |
ghcr.io/${{ github.repository_owner }}/blog-ahmza-com:latest
ghcr.io/${{ github.repository_owner }}/blog-ahmza-com:${{ github.event.head_commit.id }}
deployment:
runs-on: self-hosted
steps:
- name: deploy
uses: appleboy/ssh-actions@v1.2.0
with:
host: ${{ secret.HOST }}
username: ${{ secret.USER }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
script: 'kubectl rollout restart deployment blog-deploy -n blog'