Skip to content

Commit

Permalink
fix caddy typo, and show ssh stderr and stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
suzinyou committed Jul 1, 2024
1 parent adf9c3d commit 0576049
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 2 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/deploy_gcp_admin_app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
4 changes: 2 additions & 2 deletions .github/workflows/deploy_gcp_caddy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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'
24 changes: 24 additions & 0 deletions .github/workflows/deploy_gcp_core_backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
24 changes: 24 additions & 0 deletions .github/workflows/deploy_gcp_litellm_proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit 0576049

Please sign in to comment.