diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0203c96..ccd0108 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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')"