-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (40 loc) · 1.35 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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