mirror of
https://github.com/stefanprodan/podinfo.git
synced 2026-08-23 22:26:29 +00:00
Bumps the actions group with 4 updates in the / directory: [stefanprodan/timoni/actions/setup](https://github.com/stefanprodan/timoni), [fluxcd/flux2/action](https://github.com/fluxcd/flux2), [docker/login-action](https://github.com/docker/login-action) and [actions/attest](https://github.com/actions/attest). Updates `stefanprodan/timoni/actions/setup` from 0.27.0 to 0.27.1 - [Release notes](https://github.com/stefanprodan/timoni/releases) - [Commits](https://github.com/stefanprodan/timoni/compare/69e421aebbed979ded721df0da2a54428c5b4b9c...1aded1483439b39f391d0db0177a9f3912baee59) Updates `fluxcd/flux2/action` from 2.9.2 to 2.9.3 - [Release notes](https://github.com/fluxcd/flux2/releases) - [Commits](https://github.com/fluxcd/flux2/compare/6a650dba1b4ae9945185c4bb3cc3f386aaf71b3d...16602fa989daa99762f1c6d1186ae2ad1c735815) Updates `docker/login-action` from 4.4.0 to 4.6.0 - [Release notes](https://github.com/docker/login-action/releases) - [Commits](https://github.com/docker/login-action/compare/af1e73f918a031802d376d3c8bbc3fe56130a9b0...dbcb813823bdd20940b903addbd779551569679f) Updates `actions/attest` from 4.2.0 to 4.2.1 - [Release notes](https://github.com/actions/attest/releases) - [Changelog](https://github.com/actions/attest/blob/main/RELEASE.md) - [Commits](https://github.com/actions/attest/compare/f7c74d28b9d84cb8768d0b8ca14a4bac6ef463e6...508db95dd578ae2727ebd6217d5ba78e4fbda05d) --- updated-dependencies: - dependency-name: stefanprodan/timoni/actions/setup dependency-version: 0.27.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions - dependency-name: fluxcd/flux2/action dependency-version: 2.9.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions - dependency-name: docker/login-action dependency-version: 4.6.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions - dependency-name: actions/attest dependency-version: 4.2.1 dependency-type: direct:production update-type: version-update:semver-patch 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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
- name: Disk Cleanup
|
|
uses: ./.github/actions/runner-cleanup
|
|
- name: Setup Helm
|
|
uses: azure/setup-helm@9bc31f4ebc9c6b171d7bfbaa5d006ae7abdb4310 # v5.0.1
|
|
with:
|
|
version: v4.2.3
|
|
- 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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
- uses: ./.github/actions/runner-cleanup
|
|
- name: Setup Timoni
|
|
uses: stefanprodan/timoni/actions/setup@1aded1483439b39f391d0db0177a9f3912baee59 # v0.27.1
|
|
- 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
|