From 2a0ffec3129d8b8a54baf5fcac05f6c4c72ad419 Mon Sep 17 00:00:00 2001 From: Suzin You <7042047+suzinyou@users.noreply.github.com> Date: Mon, 1 Jul 2024 12:15:30 +0530 Subject: [PATCH] fix caddy typo, and show ssh stderr and stdout --- .github/workflows/deploy_gcp_admin_app.yaml | 24 +++++++++++++++++++ .github/workflows/deploy_gcp_caddy.yaml | 4 ++-- .../workflows/deploy_gcp_core_backend.yaml | 24 +++++++++++++++++++ .../workflows/deploy_gcp_litellm_proxy.yaml | 24 +++++++++++++++++++ 4 files changed, 74 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy_gcp_admin_app.yaml b/.github/workflows/deploy_gcp_admin_app.yaml index 00eae13d4..5b756ed24 100644 --- a/.github/workflows/deploy_gcp_admin_app.yaml +++ b/.github/workflows/deploy_gcp_admin_app.yaml @@ -71,3 +71,27 @@ jobs: --name admin_app \ ${{ env.REPO }}/admin_app:latest docker system prune -f + + - name: "Show Output" + run: |- + echo '${{ steps.compute-ssh.outputs.stdout }}' + echo '${{ steps.compute-ssh.outputs.stderr }}' + + - name: Wait for Application to start + id: wait-for-app + run: sleep 1m + shell: bash + + - name: Retrieve domain from Secret Manager + id: "secrets" + uses: "google-github-actions/get-secretmanager-secrets@v2" + with: + secrets: |- + domain:${{ secrets.GCP_PROJECT_ID }}/${{ env.RESOURCE_PREFIX }}-domain + + - name: Check if deployment was successful + id: check-deployment + run: | + curl -f -X 'GET' \ + 'https://${{ steps.secrets.outputs.domain }}/api/healthcheck' \ + -H 'accept: application/json' diff --git a/.github/workflows/deploy_gcp_caddy.yaml b/.github/workflows/deploy_gcp_caddy.yaml index e40284490..d103226de 100644 --- a/.github/workflows/deploy_gcp_caddy.yaml +++ b/.github/workflows/deploy_gcp_caddy.yaml @@ -61,7 +61,7 @@ jobs: --registries ${{ secrets.DOCKER_REGISTRY_DOMAIN }} docker pull ${{ env.REPO }}/caddy:latest docker stop caddy - docker rm caady + docker rm caddy docker run -d \ -v caddy_data:/data \ -v caddy_config:/config \ @@ -95,6 +95,6 @@ jobs: - name: Check if deployment was successful id: check-deployment run: | - curl -X 'GET' \ + curl -f -X 'GET' \ 'https://${{ steps.secrets.outputs.domain }}/api/healthcheck' \ -H 'accept: application/json' diff --git a/.github/workflows/deploy_gcp_core_backend.yaml b/.github/workflows/deploy_gcp_core_backend.yaml index 81338507b..7d64c5064 100644 --- a/.github/workflows/deploy_gcp_core_backend.yaml +++ b/.github/workflows/deploy_gcp_core_backend.yaml @@ -71,3 +71,27 @@ jobs: --name core_backend \ ${{ env.REPO }}/core_backend:latest docker system prune -f + + - name: "Show Output" + run: |- + echo '${{ steps.compute-ssh.outputs.stdout }}' + echo '${{ steps.compute-ssh.outputs.stderr }}' + + - name: Wait for Application to start + id: wait-for-app + run: sleep 1m + shell: bash + + - name: Retrieve domain from Secret Manager + id: "secrets" + uses: "google-github-actions/get-secretmanager-secrets@v2" + with: + secrets: |- + domain:${{ secrets.GCP_PROJECT_ID }}/${{ env.RESOURCE_PREFIX }}-domain + + - name: Check if deployment was successful + id: check-deployment + run: | + curl -f -X 'GET' \ + 'https://${{ steps.secrets.outputs.domain }}/api/healthcheck' \ + -H 'accept: application/json' diff --git a/.github/workflows/deploy_gcp_litellm_proxy.yaml b/.github/workflows/deploy_gcp_litellm_proxy.yaml index 8f573e371..866d2a746 100644 --- a/.github/workflows/deploy_gcp_litellm_proxy.yaml +++ b/.github/workflows/deploy_gcp_litellm_proxy.yaml @@ -70,3 +70,27 @@ jobs: --name litellm_proxy \ ${{ env.REPO }}/litellm_proxy:latest docker system prune -f + + - name: "Show Output" + run: |- + echo '${{ steps.compute-ssh.outputs.stdout }}' + echo '${{ steps.compute-ssh.outputs.stderr }}' + + - name: Wait for Application to start + id: wait-for-app + run: sleep 1m + shell: bash + + - name: Retrieve domain from Secret Manager + id: "secrets" + uses: "google-github-actions/get-secretmanager-secrets@v2" + with: + secrets: |- + domain:${{ secrets.GCP_PROJECT_ID }}/${{ env.RESOURCE_PREFIX }}-domain + + - name: Check if deployment was successful + id: check-deployment + run: | + curl -f -X 'GET' \ + 'https://${{ steps.secrets.outputs.domain }}/api/healthcheck' \ + -H 'accept: application/json'