Skip to content

Commit

Permalink
Sets Gradle home and fixes minor doc issues
Browse files Browse the repository at this point in the history
- Set Gradle user home with --gradle-user-home
- Fixes docs (tekton.dev/v1alpha1 --> tekton.dev/v1beta1)
  • Loading branch information
chanseokoh committed Jul 7, 2020
1 parent 7a481c5 commit 0a99192
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions jib-gradle/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ kubectl apply -f https://raw.githubusercontent.com/tektoncd/catalog/master/jib-g
This TaskRun runs the Task to fetch a Git repo, and build and push a container
image using Jib (Gradle)

```
apiVersion: tekton.dev/v1alpha1
```yaml
apiVersion: tekton.dev/v1beta1
kind: PipelineResource
metadata:
name: example-image
Expand All @@ -44,7 +44,7 @@ spec:
value: gcr.io/tekton-task-project/my-image
```
```
```yaml
apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
Expand Down
1 change: 1 addition & 0 deletions jib-gradle/jib-gradle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ spec:
--stacktrace --console=plain \
--init-script=/tekton/home/init-script.gradle \
-Duser.home=/tekton/home \
--gradle-user-home=/tekton/home/.gradle \
-Dgradle.user.home=/tekton/home/.gradle \
-Djib.allowInsecureRegistries=$(params.INSECUREREGISTRY) \
-Djib.to.image=$(resources.outputs.image.url)
Expand Down
6 changes: 3 additions & 3 deletions jib-maven/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ kubectl apply -f https://raw.githubusercontent.com/tektoncd/catalog/master/jib-m
This TaskRun runs the Task to fetch a Git repo, and build and push a container
image using Jib (Maven)

```
apiVersion: tekton.dev/v1alpha1
```yaml
apiVersion: tekton.dev/v1beta1
kind: PipelineResource
metadata:
name: example-image
Expand All @@ -44,7 +44,7 @@ spec:
value: gcr.io/tekton-task-project/my-image
```
```
```yaml
apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
Expand Down

0 comments on commit 0a99192

Please sign in to comment.