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