added deployment to gimli
This commit is contained in:
@@ -57,7 +57,7 @@ jobs:
|
|||||||
hostname: 'blog-gh-actions'
|
hostname: 'blog-gh-actions'
|
||||||
management-url: ${{ secrets.NETBIRD_URL }}
|
management-url: ${{ secrets.NETBIRD_URL }}
|
||||||
|
|
||||||
- name: Deploy to Cluster
|
- name: Deploy to RPIC Cluster
|
||||||
uses: appleboy/ssh-action@v1.2.2
|
uses: appleboy/ssh-action@v1.2.2
|
||||||
with:
|
with:
|
||||||
host: ${{ secrets.SSH_HOST }}
|
host: ${{ secrets.SSH_HOST }}
|
||||||
@@ -65,3 +65,12 @@ jobs:
|
|||||||
key: ${{ secrets.SSH_KEY }}
|
key: ${{ secrets.SSH_KEY }}
|
||||||
port: ${{ secrets.SSH_PORT }}
|
port: ${{ secrets.SSH_PORT }}
|
||||||
script: 'kubectl rollout restart deployment blog -n blog-ahmza-com'
|
script: 'kubectl rollout restart deployment blog -n blog-ahmza-com'
|
||||||
|
|
||||||
|
- name: Deploy to gimli-blog
|
||||||
|
uses: appleboy/ssh-action@1.2.2
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.GIMLI_BLOG_HOST }}
|
||||||
|
username: ${{ secrets GIMLI_BLOG_USER }}
|
||||||
|
key: ${{ secrets.GIMLI_BLOG_KEY }}
|
||||||
|
port: ${{ secrets.GIMLI_BLOG_PORT }}
|
||||||
|
script: 'docker compose down && docker compose pull && docker compose up -d'
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
services:
|
||||||
|
blog:
|
||||||
|
image: ghcr.io/ahmzaa/blog-ahmza-com
|
||||||
|
ports:
|
||||||
|
- 80:80
|
||||||
|
restart: unless-stopped
|
||||||
Reference in New Issue
Block a user