Container Registry Test #21
This file contains hidden or 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: 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 |