auto deploy
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user