CI #1009
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: CI | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '22 4 * * *' | |
| push: | |
| branches: ['main'] | |
| pull_request: | |
| branches: ['main'] | |
| jobs: | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| k8s: | |
| - v1.30.0 | |
| - v1.29.0 | |
| - v1.28.0 | |
| - v1.27.0 | |
| - v1.26.0 | |
| - v1.25.3 | |
| - v1.24.7 | |
| - v1.23.13 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 | |
| with: | |
| fetch-depth: 0 | |
| - name: Create kind ${{ matrix.k8s }} cluster | |
| uses: helm/kind-action@ef37e7f390d99f746eb8b610417061a60e82a6cc | |
| with: | |
| node_image: kindest/node:${{ matrix.k8s }} | |
| version: v0.20.0 | |
| - name: Install Skaffold | |
| run: | | |
| curl -Lo skaffold https://storage.googleapis.com/skaffold/releases/latest/skaffold-linux-amd64 && \ | |
| sudo install skaffold /usr/local/bin/ | |
| - name: Test | |
| env: | |
| CONTEXT_NAME: chart-testing | |
| run: make test logs | |
| - name: Upload Logs | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: kind-logs-${{ matrix.k8s }} | |
| path: /tmp/kind-logs | |
| build-image: | |
| name: Image | |
| permissions: | |
| packages: write | |
| security-events: write | |
| id-token: write | |
| contents: read | |
| needs: | |
| - test | |
| uses: curium-rocks/flows/.github/workflows/oci-build-image.yml@main | |
| with: | |
| codeql_enabled: true | |
| image_name: k8s-wireguard-mgr | |
| registry: 'ghcr.io/bryopsida' | |
| push_in_pr: true | |
| platforms: 'linux/amd64,linux/arm64,linux/riscv64' |