Skip to content

Commit

Permalink
Update: README
Browse files Browse the repository at this point in the history
  • Loading branch information
gitbluf committed Oct 5, 2023
1 parent 493513f commit e914f32
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
OWNER: ${{ github.repository_owner }}
TAG: ${{ github.ref_name }}
run: make push
- name: Spinup kind
- name: Setup kind
id: kind
run: make kind
- name: Test bundle
Expand Down
40 changes: 39 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,42 @@ values: {
seccompProfile: type: "RuntimeDefault"
}
}
```
```

### Bundle usage example(s)

Example with redis
```cue
bundle: {
_env: "none" @timoni(runtime:string:ENV)
_tag: "latest" @timoni(runtime:string:GITHUB_REF_NAME)
apiVersion: "v1alpha1"
name: "demo-app"
instances: {
// export ENV=dev will trigger redis deployment
if _env == "dev" {
redis: {
module: {
url: "oci://ghcr.io/stefanprodan/modules/redis"
version: "7.2.1"
}
namespace: "test"
values: maxmemory: 256
}
}
deployment: {
module: url: "oci://ghcr.io/schubergphilis/cue-modules/deploy"
module: version: _tag
namespace: "test"
values: {
image: {
repository: "nginx"
digest: "sha256:d2b0e52d7c2e5dd9fe5266b163e14d41ed97fd380deb55a36ff17efd145549cd"
tag: "1.25.1"
}
}
}
}
}
```

0 comments on commit e914f32

Please sign in to comment.