Merge pull request #470 from stefanprodan/release-6.11.2 #747
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: e2e | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - 'master' | |
| permissions: | |
| contents: read | |
| jobs: | |
| kind-helm: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Disk Cleanup | |
| uses: ./.github/actions/runner-cleanup | |
| - name: Setup Kubernetes | |
| uses: helm/kind-action@ef37e7f390d99f746eb8b610417061a60e82a6cc # v1.14.0 | |
| with: | |
| cluster_name: kind | |
| - name: Build container image | |
| run: | | |
| ./test/build.sh | |
| kind load docker-image test/podinfo:latest | |
| - name: Setup Helm | |
| uses: azure/setup-helm@dda3372f752e03dde6b3237bc9431cdc2f7a02a2 # v5.0.0 | |
| with: | |
| version: v4.1.0 | |
| - name: Deploy | |
| run: ./test/deploy.sh | |
| - name: Run integration tests | |
| run: ./test/test.sh | |
| - name: Debug failure | |
| if: failure() | |
| run: | | |
| kubectl logs -l app=podinfo || true | |
| kind-timoni: | |
| runs-on: ubuntu-latest | |
| services: | |
| registry: | |
| image: registry:2 | |
| ports: | |
| - 5000:5000 | |
| env: | |
| PODINFO_IMAGE_URL: "test/podinfo" | |
| PODINFO_MODULE_URL: "oci://localhost:5000/podinfo" | |
| PODINFO_VERSION: "0.0.0-devel" | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: ./.github/actions/runner-cleanup | |
| - name: Setup Timoni | |
| uses: stefanprodan/timoni/actions/setup@c68e33a34f17c7ca93c7fc6717d61a14819276dc # v0.26.0 | |
| - name: Setup Kubernetes | |
| uses: helm/kind-action@ef37e7f390d99f746eb8b610417061a60e82a6cc # v1.14.0 | |
| with: | |
| cluster_name: kind | |
| - name: Build container | |
| run: | | |
| docker build -t ${PODINFO_IMAGE_URL}:${PODINFO_VERSION} --build-arg "REVISION=${GITHUB_SHA}" -f Dockerfile.xx . | |
| kind load docker-image ${PODINFO_IMAGE_URL}:${PODINFO_VERSION} | |
| - name: Vet module | |
| run: | | |
| timoni mod vet ./timoni/podinfo --debug | |
| - name: Build module | |
| run: | | |
| timoni mod push ./timoni/podinfo ${PODINFO_MODULE_URL} -v ${PODINFO_VERSION} | |
| - name: Apply bundle | |
| run: | | |
| timoni bundle apply -f ./timoni/bundles/test.podinfo.cue --runtime-from-env | |
| - name: Verify status | |
| run: | | |
| timoni -n podinfo status backend | |
| timoni -n podinfo status frontend | |
| - name: Debug failure | |
| if: failure() | |
| run: | | |
| kubectl -n podinfo get all || true |