-
Notifications
You must be signed in to change notification settings - Fork 18
43 lines (41 loc) · 1.3 KB
/
test-container-registry.yml
File metadata and controls
43 lines (41 loc) · 1.3 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
name: Container Registry Test
on:
push:
branches:
- main
paths:
- '!**'
- '.github/workflows/triggers/test-container-registry'
- '.github/workflows/test-container-registry.yml'
- 'tests/container-registry/run-test.sh'
schedule:
- cron: '6 19 * * *'
jobs:
test:
name: "Run container registry hosting test on kind/k8s"
runs-on: ubuntu-22.04
steps:
- name: "Clone project repository"
uses: actions/checkout@v3
- name: "Install Python"
uses: actions/setup-python@v4
with:
python-version: '3.8'
- name: "Print Python version"
run: python3 --version
- name: "Install shiv"
run: pip install shiv==1.0.8
- name: "Generate build version file"
run: ./scripts/create_build_tag_file.sh
- name: "Build local shiv package"
run: ./scripts/build_shiv_package.sh
- name: "Check cgroups version"
run: mount | grep cgroup
- name: "Install kind"
run: ./tests/scripts/install-kind.sh
- name: "Install Kubectl"
run: ./tests/scripts/install-kubectl.sh
- name: "Install ed"
run: sudo apt-get update && sudo apt-get install -y ed
- name: "Run container registry deployment test"
run: ./tests/container-registry/run-test.sh