Skip to content

Commit

Permalink
chore: Update access right for npm-build task (#74)
Browse files Browse the repository at this point in the history
* Make possible run npm pipelines on OKD cluster

Change-Id: Ie8766f93384930fa37383ea9e794c7648271819a
  • Loading branch information
Mykola Serdiuk committed Dec 15, 2023
1 parent 6de2a10 commit d0c495b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions charts/pipelines-library/templates/tasks/edp-npm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,19 @@ spec:
workingDir: $(workspaces.source.path)/$(params.PATH_CONTEXT)
script: |
npm run build:prod
{{ if eq .Values.global.platform "openshift" }}
securityContext:
runAsUser: 0
{{ end }}

- name: test
image: $(params.BASE_IMAGE)
workingDir: $(workspaces.source.path)/$(params.PATH_CONTEXT)
script: |
npm run test:coverage
{{ if eq .Values.global.platform "openshift" }}
securityContext:
runAsUser: 0
{{ end }}

{{- include "resources" . | nindent 6 }}

0 comments on commit d0c495b

Please sign in to comment.