Skip to content

Commit

Permalink
Add proper source type to Builds
Browse files Browse the repository at this point in the history
The type was missing, which should be Git
  • Loading branch information
qu1queee committed Oct 18, 2023
1 parent 8da99f8 commit f1e3fcb
Show file tree
Hide file tree
Showing 15 changed files with 63 additions and 3 deletions.
20 changes: 18 additions & 2 deletions docs/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ metadata:
build.shipwright.io/verify.repository: "true"
spec:
source:
type: Git
git:
url: https://github.com/shipwright-io/sample-go
contextDir: docker-build
Expand All @@ -134,6 +135,7 @@ metadata:
name: buildpack-nodejs-build
spec:
source:
type: Git
git:
url: https://github.com/sclorg/nodejs-ex
cloneSecret: source-repository-credentials
Expand All @@ -148,6 +150,7 @@ metadata:
name: buildah-custom-context-dockerfile
spec:
source:
type: Git
git:
url: https://github.com/SaschaSchwarze0/npm-simple
contextDir: renamed
Expand All @@ -162,6 +165,7 @@ metadata:
name: buildah-golang-build
spec:
source:
type: Git
git:
url: https://github.com/shipwright-io/sample-go
revision: v0.1.0
Expand All @@ -177,6 +181,7 @@ metadata:
name: buildah-golang-build
spec:
source:
type: Git
git:
url: https://github.com/shipwright-io/sample-go
contextDir: docker-build
Expand All @@ -197,6 +202,7 @@ metadata:
name: buildah-golang-build
spec:
source:
type: Git
git:
url: https://github.com/shipwright-io/sample-go
contextDir: docker-build
Expand All @@ -217,6 +223,7 @@ metadata:
name: buildah-golang-build
spec:
source:
type: Git
git:
url: https://github.com/shipwright-io/sample-go
contextDir: docker-build
Expand Down Expand Up @@ -429,7 +436,9 @@ metadata:
name: buildah-golang-build
spec:
source:
url: https://github.com/shipwright-io/sample-go
type: Git
git:
url: https://github.com/shipwright-io/sample-go
contextDir: docker-build
strategy:
name: buildah
Expand All @@ -448,7 +457,9 @@ metadata:
name: s2i-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: source-to-image
Expand All @@ -473,6 +484,7 @@ metadata:
name: s2i-nodejs-build
spec:
source:
type: Git
git:
url: https://github.com/shipwright-io/sample-nodejs
contextDir: source-build/
Expand Down Expand Up @@ -518,6 +530,7 @@ metadata:
name: s2i-nodejs-build
spec:
source:
type: Git
git:
url: https://github.com/shipwright-io/sample-nodejs
contextDir: source-build/
Expand Down Expand Up @@ -571,6 +584,7 @@ An example of a user using both TTL and Limit retention fields. In case of such
name: build-retention-ttl
spec:
source:
type: Git
git:
url: "https://github.com/shipwright-io/sample-go"
contextDir: docker-build
Expand Down Expand Up @@ -604,6 +618,7 @@ metadata:
name: build-name
spec:
source:
type: Git
git:
url: https://github.com/example/url
strategy:
Expand Down Expand Up @@ -633,6 +648,7 @@ apiVersion: shipwright.io/v1beta1
kind: Build
spec:
source:
type: Git
git:
url: https://github.com/shipwright-io/sample-go
cloneSecret: webhook-secret
Expand Down
1 change: 1 addition & 0 deletions docs/buildrun.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ spec:
build:
spec:
source:
type: Git
git:
url: https://github.com/shipwright-io/sample-go.git
contextDir: source-build
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
name: buildah-golang-build
spec:
source:
type: Git
git:
url: https://github.com/shipwright-io/sample-go
contextDir: docker-build
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
name: buildah-golang-build
spec:
source:
type: Git
git:
url: https://github.com/shipwright-io/sample-go
contextDir: docker-build
Expand Down
1 change: 1 addition & 0 deletions samples/v1beta1/build/build_buildkit_cr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
name: buildkit-build
spec:
source:
type: Git
git:
url: https://github.com/shipwright-io/sample-go
contextDir: docker-build
Expand Down
1 change: 1 addition & 0 deletions samples/v1beta1/build/build_buildpacks-v3-heroku_cr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
name: buildpack-nodejs-build-heroku
spec:
source:
type: Git
git:
url: https://github.com/shipwright-io/sample-nodejs
contextDir: source-build-heroku
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
name: buildpack-nodejs-build-namespaced-heroku
spec:
source:
type: Git
git:
url: https://github.com/shipwright-io/sample-nodejs
contextDir: source-build-heroku
Expand Down
1 change: 1 addition & 0 deletions samples/v1beta1/build/build_buildpacks-v3_cr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
name: buildpack-nodejs-build
spec:
source:
type: Git
git:
url: https://github.com/shipwright-io/sample-nodejs
contextDir: source-build
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
name: buildpack-nodejs-build-namespaced
spec:
source:
type: Git
git:
url: https://github.com/shipwright-io/sample-nodejs
contextDir: source-build
Expand Down
1 change: 1 addition & 0 deletions samples/v1beta1/build/build_kaniko-trivy-bad_cr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
name: kaniko-trivy-bad-build
spec:
source:
type: Git
git:
url: https://github.com/shipwright-io/sample-scanning
strategy:
Expand Down
1 change: 1 addition & 0 deletions samples/v1beta1/build/build_kaniko-trivy-good_cr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
name: kaniko-trivy-good-build
spec:
source:
type: Git
git:
url: https://github.com/shipwright-io/sample-scanning
strategy:
Expand Down
1 change: 1 addition & 0 deletions samples/v1beta1/build/build_kaniko_cr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
name: kaniko-golang-build
spec:
source:
type: Git
git:
url: https://github.com/shipwright-io/sample-go
contextDir: docker-build
Expand Down
1 change: 1 addition & 0 deletions samples/v1beta1/build/build_ko_cr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ spec:
- name: package-directory
value: ./cmd/shipwright-build-controller
source:
type: Git
git:
url: https://github.com/shipwright-io/build
strategy:
Expand Down
1 change: 1 addition & 0 deletions samples/v1beta1/build/build_source-to-image_cr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
name: s2i-nodejs-build
spec:
source:
type: Git
git:
url: https://github.com/shipwright-io/sample-nodejs
contextDir: source-build/
Expand Down
Loading

0 comments on commit f1e3fcb

Please sign in to comment.