fix: initialize npm cache permissions in Jenkins
This commit is contained in:
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
@@ -137,6 +137,10 @@ pipeline {
|
|||||||
|
|
||||||
sleep 2
|
sleep 2
|
||||||
done
|
done
|
||||||
|
docker run --rm \
|
||||||
|
-v tiptop-npm-cache-backend:/npm-cache \
|
||||||
|
alpine \
|
||||||
|
sh -c 'chown -R 1000:1000 /npm-cache'
|
||||||
|
|
||||||
docker run --rm \
|
docker run --rm \
|
||||||
--network "${CI_NETWORK}" \
|
--network "${CI_NETWORK}" \
|
||||||
@@ -184,6 +188,11 @@ pipeline {
|
|||||||
steps {
|
steps {
|
||||||
sh '''
|
sh '''
|
||||||
docker run --rm \
|
docker run --rm \
|
||||||
|
-v tiptop-npm-cache-frontend:/npm-cache \
|
||||||
|
alpine \
|
||||||
|
sh -c 'chown -R 1000:1000 /npm-cache'
|
||||||
|
|
||||||
|
docker run --rm \
|
||||||
--volumes-from furious-jenkins \
|
--volumes-from furious-jenkins \
|
||||||
-v tiptop-npm-cache-frontend:/npm-cache \
|
-v tiptop-npm-cache-frontend:/npm-cache \
|
||||||
--user "$(id -u):$(id -g)" \
|
--user "$(id -u):$(id -g)" \
|
||||||
|
|||||||
Reference in New Issue
Block a user