Fix logs #58
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Intelligence.AI SchemaHub | |
on: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref_type }} | |
cancel-in-progress: false | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
permissions: | |
packages: read | |
contents: write | |
env: | |
KRAFTCLOUD_METRO: was1 | |
KRAFTKIT_VERSION: 0.9.1 | |
KRAFTKIT_LOG_LEVEL: debug | |
KRAFTKIT_NO_CHECK_UPDATES: true | |
steps: | |
- uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.SCHEMAHUB_ACCESS_TOKEN }} | |
- uses: actions/checkout@v4 | |
- id: deploy | |
uses: unikraft/kraftkit@staging | |
with: | |
auths: | | |
github.com: | |
user: ${{ github.actor }} | |
token: ${{ secrets.SCHEMAHUB_ACCESS_TOKEN }} | |
run: | | |
set -x | |
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 | |
kraft cloud service get schemas | |
kraft cloud instance logs "$(kraft cloud service get schemas --output json | jq --raw-output '.[0].instances | split(" ") | .[0]')" | |
curl --location --fail https://schemas.intelligence.ai | |
env: | |
KRAFTCLOUD_TOKEN: ${{ secrets.KRAFTCLOUD_TOKEN }} |