Skip to content

More fixes

More fixes #63

Workflow file for this run

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_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/[email protected]
with:
auths: |
github.com:
user: ${{ github.actor }}
token: ${{ secrets.SCHEMAHUB_ACCESS_TOKEN }}
run: |
set -o errexit
set -o nounset
kraft cloud service create --name schemas --domain schemas.intelligence.ai 443:8000 || true
kraft cloud deploy --memory 64 --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 }}