Add standard concept library #39
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 | |
steps: | |
- name: Install KraftKit | |
run: | | |
wget https://github.com/unikraft/kraftkit/releases/download/v${{ env.KRAFTKIT_VERSION }}/kraftkit_${{ env.KRAFTKIT_VERSION }}_linux_amd64.deb | |
sudo dpkg -i kraftkit_${{ env.KRAFTKIT_VERSION }}_linux_amd64.deb | |
rm kraftkit_${{ env.KRAFTKIT_VERSION }}_linux_amd64.deb | |
kraft version | |
docker run --rm -d --name buildkit --privileged moby/buildkit:latest | |
kraft login --token ${{ secrets.KRAFTCLOUD_TOKEN }} index.unikraft.io | |
- uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.SCHEMAHUB_ACCESS_TOKEN }} | |
- run: kraft cloud image list | |
- run: > | |
kraft pkg | |
--no-prompt | |
--kraftfile misc/Kraftfile | |
--buildkit-host "docker-container://buildkit" | |
--plat kraftcloud | |
--push | |
--name index.unikraft.io/sourcemeta/schemas:latest |