From 6d8f616bf00e2ddb998e45f8f40fe154e6ffafef Mon Sep 17 00:00:00 2001 From: ahmza Date: Thu, 12 Feb 2026 22:39:40 +0000 Subject: [PATCH] added deployment to gimli --- .github/workflows/build-docker-images.yml | 11 ++++++++++- compose.yml | 6 ++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 compose.yml diff --git a/.github/workflows/build-docker-images.yml b/.github/workflows/build-docker-images.yml index b7c023e..29b4f8a 100644 --- a/.github/workflows/build-docker-images.yml +++ b/.github/workflows/build-docker-images.yml @@ -57,7 +57,7 @@ jobs: hostname: 'blog-gh-actions' management-url: ${{ secrets.NETBIRD_URL }} - - name: Deploy to Cluster + - name: Deploy to RPIC Cluster uses: appleboy/ssh-action@v1.2.2 with: host: ${{ secrets.SSH_HOST }} @@ -65,3 +65,12 @@ jobs: key: ${{ secrets.SSH_KEY }} port: ${{ secrets.SSH_PORT }} 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' diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..f96fd88 --- /dev/null +++ b/compose.yml @@ -0,0 +1,6 @@ +services: + blog: + image: ghcr.io/ahmzaa/blog-ahmza-com + ports: + - 80:80 + restart: unless-stopped