mirror of
https://github.com/stefanprodan/podinfo.git
synced 2026-08-23 22:26:29 +00:00
Bumps the actions group with 2 updates in the / directory: [actions/checkout](https://github.com/actions/checkout) and [fluxcd/flux-schema](https://github.com/fluxcd/flux-schema). Updates `actions/checkout` from 6.0.2 to 6.0.3 - [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/de0fac2e4500dabe0009e67214ff5f5447ce83dd...df4cb1c069e1874edd31b4311f1884172cec0e10) Updates `fluxcd/flux-schema` from 5420d0e69becd86581765cf2fc42b6f6a9ac65fe to b8dc6ef4ee4cc3d244bd3595ac5654bf1c344b76 - [Release notes](https://github.com/fluxcd/flux-schema/releases) - [Commits](https://github.com/fluxcd/flux-schema/compare/5420d0e69becd86581765cf2fc42b6f6a9ac65fe...b8dc6ef4ee4cc3d244bd3595ac5654bf1c344b76) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 6.0.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions - dependency-name: fluxcd/flux-schema dependency-version: b8dc6ef4ee4cc3d244bd3595ac5654bf1c344b76 dependency-type: direct:production dependency-group: actions ... Signed-off-by: dependabot[bot] <support@github.com>
75 lines
2.3 KiB
YAML
75 lines
2.3 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
- name: Disk Cleanup
|
|
uses: ./.github/actions/runner-cleanup
|
|
- name: Setup Helm
|
|
uses: azure/setup-helm@dda3372f752e03dde6b3237bc9431cdc2f7a02a2 # v5.0.0
|
|
with:
|
|
version: v4.1.0
|
|
- name: Setup Kubernetes
|
|
uses: helm/kind-action@ef37e7f390d99f746eb8b610417061a60e82a6cc # v1.14.0
|
|
with:
|
|
cluster_name: kind
|
|
- name: Run integration tests
|
|
run: ./test/e2e.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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
- 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 .
|
|
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
|