-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (46 loc) · 1.7 KB
/
ci.yaml
File metadata and controls
48 lines (46 loc) · 1.7 KB
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
46
47
48
name: ci
permissions:
contents: read
on:
pull_request:
push:
branches:
- main
jobs:
test-provisioners:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: score-spec/setup-score@9ce358a6641972930fbf1c91d93185fec520f7e4 # v3.1.8
with:
file: score-compose
version: latest
token: ${{ secrets.GITHUB_TOKEN }}
- uses: score-spec/setup-score@9ce358a6641972930fbf1c91d93185fec520f7e4 # v3.1.8
with:
file: score-k8s
version: latest
token: ${{ secrets.GITHUB_TOKEN }}
- name: set up docker-model-plugin (for llm-model)
run: |
# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
# Add the repository to Apt sources:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
# Update and Install
sudo apt-get update
sudo apt-get install -y docker-model-plugin
- name: setup-kind-cluster
run: |
.scripts/setup-kind-cluster.sh
- name: test-provisioners
run: |
.scripts/test-score-files.sh