Skip to content

Commit

Permalink
Add a basic healthcheck
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
  • Loading branch information
jviotti committed Aug 6, 2024
1 parent e37d155 commit 082e4bc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,13 @@ jobs:
run: |
kraft cloud service create --name schemas --domain schemas.intelligence.ai 443:8000 || true
kraft cloud deploy --memory 256 --rollout remove --image schemas --service schemas --kraftfile Kraftfile
curl --location --fail ${{ steps.refs.outputs.url }}
env:
KRAFTCLOUD_TOKEN: ${{ secrets.KRAFTCLOUD_TOKEN }}

- name: Dump instance logs on failure
if: ${{ steps.deploy.outcome == 'failure' }}
uses: unikraft/kraftkit@staging
with:
run: |
kraft cloud vm logs "$(kraft cloud svc get www | jq --raw-output '.data.service_groups[].instances[].name')"

0 comments on commit 082e4bc

Please sign in to comment.