Update .github/workflows/build-docker-images.yml
This commit is contained in:
@@ -48,7 +48,7 @@ jobs:
|
||||
${{ env.REGISTRY }}/${{ gitea.repository_owner }}/blog-ahmza-com:${{ gitea.event.head_commit.id }}
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
deploy-to-rpic:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
|
||||
@@ -60,32 +60,20 @@ jobs:
|
||||
hostname: 'blog-gh-actions'
|
||||
management-url: ${{ secrets.NETBIRD_URL }}
|
||||
|
||||
- name: Deploy to Cluster
|
||||
- name: Deploy to RPIC-Cluster
|
||||
uses: appleboy/ssh-action@v1
|
||||
with:
|
||||
host: ${{ secrets.SSH_HOST }}
|
||||
host: ${{ secrets.RPIC_HOST }}
|
||||
username: ${{ secrets.SSH_USER }}
|
||||
key: ${{ secrets.SSH_KEY }}
|
||||
key: ${{ secrets.RPIC_KEY }}
|
||||
port: ${{ secrets.SSH_PORT }}
|
||||
script: 'kubectl rollout restart deployment blog -n blog-ahmza-com'
|
||||
|
||||
deploy-to-gimli-blog:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
|
||||
steps:
|
||||
- name: Netbird Connect
|
||||
uses: Alemiz112/netbird-connect@v1
|
||||
with:
|
||||
setup-key: ${{ secrets.NETBIRD_SETUP_KEY }}
|
||||
hostname: 'blog-gh-actions'
|
||||
management-url: ${{ secrets.NETBIRD_URL }}
|
||||
|
||||
- name: Deploy to gimli-blog
|
||||
- name: Deploy to Gimli
|
||||
uses: appleboy/ssh-action@v1
|
||||
with:
|
||||
host: ${{ secrets.GIMLI_BLOG_HOST }}
|
||||
username: ${{ secrets.GIMLI_BLOG_USER }}
|
||||
key: ${{ secrets.GIMLI_BLOG_KEY }}
|
||||
port: ${{ secrets.GIMLI_BLOG_PORT }}
|
||||
host: ${{ secrets.GIMLI_HOST }}
|
||||
username: ${{ secrets.SSH_USER }}
|
||||
key: ${{ secrets.GIMLI_KEY }}
|
||||
port: ${{ secrets.SSH_PORT }}
|
||||
script: 'docker compose down && docker compose pull && docker compose up -d'
|
||||
|
||||
Reference in New Issue
Block a user