Skip to content

Commit

Permalink
Move README to v1beta1
Browse files Browse the repository at this point in the history
Move CRs to use v1beta1 as the apiVersion
and adjust the objects definition

Signed-off-by: Adarsh Jaiswal <[email protected]>
  • Loading branch information
qu1queee authored and Adarsh-jaiss committed Mar 11, 2024
1 parent 8f94cdf commit c13d5dd
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,21 +88,22 @@ Shipwright supports any tool that can build container images in Kubernetes clust
```bash
REGISTRY_ORG=<your_registry_org>
cat <<EOF | kubectl apply -f -
apiVersion: shipwright.io/v1alpha1
apiVersion: shipwright.io/v1beta1
kind: Build
metadata:
name: buildpack-nodejs-build
spec:
source:
url: https://github.com/shipwright-io/sample-nodejs
type: Git
git:
url: https://github.com/shipwright-io/sample-nodejs
contextDir: source-build
strategy:
name: buildpacks-v3
kind: ClusterBuildStrategy
output:
image: docker.io/${REGISTRY_ORG}/sample-nodejs:latest
credentials:
name: push-secret
pushSecret: push-secret
EOF
```
Expand All @@ -119,12 +120,12 @@ Shipwright supports any tool that can build container images in Kubernetes clust
```bash
cat <<EOF | kubectl create -f -
apiVersion: shipwright.io/v1alpha1
apiVersion: shipwright.io/v1beta1
kind: BuildRun
metadata:
generateName: buildpack-nodejs-buildrun-
spec:
buildRef:
build:
name: buildpack-nodejs-build
EOF
```
Expand Down

0 comments on commit c13d5dd

Please sign in to comment.