Skip to content

Commit

Permalink
Run jib-gradle as root
Browse files Browse the repository at this point in the history
This will fix the issue of task not
working on OpenShift as it needs root access and
by default on OpenShift pod run as nonroot

Fix tektoncd#198
  • Loading branch information
piyush-garg committed Mar 6, 2020
1 parent 6a4d229 commit dca2320
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jib-gradle/jib-gradle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ spec:
- name: $(inputs.params.CACHE)
mountPath: /tekton/home/.cache
subPath: jib-cache
securityContext:
runAsUser: 0

volumes:
- name: empty-dir-volume
Expand Down

0 comments on commit dca2320

Please sign in to comment.