mirror of
https://github.com/stefanprodan/podinfo.git
synced 2026-08-20 04:36:43 +00:00
Bumps the actions group with 6 updates: | Package | From | To | | --- | --- | --- | | [actions/checkout](https://github.com/actions/checkout) | `3` | `4` | | [helm/kind-action](https://github.com/helm/kind-action) | `1.10.0` | `1.12.0` | | [azure/setup-helm](https://github.com/azure/setup-helm) | `3` | `4` | | [docker/build-push-action](https://github.com/docker/build-push-action) | `5` | `6` | | [azure/setup-kubectl](https://github.com/azure/setup-kubectl) | `3` | `4` | | [cue-lang/setup-cue](https://github.com/cue-lang/setup-cue) | `1.0.0` | `1.0.1` | Updates `actions/checkout` from 3 to 4 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) Updates `helm/kind-action` from 1.10.0 to 1.12.0 - [Release notes](https://github.com/helm/kind-action/releases) - [Commits](https://github.com/helm/kind-action/compare/v1.10.0...v1.12.0) Updates `azure/setup-helm` from 3 to 4 - [Release notes](https://github.com/azure/setup-helm/releases) - [Changelog](https://github.com/Azure/setup-helm/blob/main/CHANGELOG.md) - [Commits](https://github.com/azure/setup-helm/compare/v3...v4) Updates `docker/build-push-action` from 5 to 6 - [Release notes](https://github.com/docker/build-push-action/releases) - [Commits](https://github.com/docker/build-push-action/compare/v5...v6) Updates `azure/setup-kubectl` from 3 to 4 - [Release notes](https://github.com/azure/setup-kubectl/releases) - [Changelog](https://github.com/Azure/setup-kubectl/blob/main/CHANGELOG.md) - [Commits](https://github.com/azure/setup-kubectl/compare/v3...v4) Updates `cue-lang/setup-cue` from 1.0.0 to 1.0.1 - [Release notes](https://github.com/cue-lang/setup-cue/releases) - [Commits](https://github.com/cue-lang/setup-cue/compare/v1.0.0...v1.0.1) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '4' dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: helm/kind-action dependency-version: 1.12.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions - dependency-name: azure/setup-helm dependency-version: '4' dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: docker/build-push-action dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: azure/setup-kubectl dependency-version: '4' dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: cue-lang/setup-cue dependency-version: 1.0.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions ... Signed-off-by: dependabot[bot] <support@github.com>
79 lines
2.1 KiB
YAML
79 lines
2.1 KiB
YAML
name: e2e
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- 'master'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
kind-helm:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Setup Kubernetes
|
|
uses: helm/kind-action@v1.12.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@v4
|
|
with:
|
|
version: v3.17.3
|
|
- 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:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Setup Timoni
|
|
uses: stefanprodan/timoni/actions/setup@main
|
|
- name: Setup Kubernetes
|
|
uses: helm/kind-action@v1.12.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
|