Skip to content

Commit

Permalink
[Heartbeat] Use stack_release label for synthetics npm install (#33362)
Browse files Browse the repository at this point in the history
Fixes #31732

Always use the `stack_release` label for `npm i`

(cherry picked from commit f3302cd)
  • Loading branch information
andrewvc authored and mergify[bot] committed Oct 18, 2022
1 parent 8516f06 commit 22f20ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev-tools/packaging/templates/docker/Dockerfile.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ RUN cd /usr/share/heartbeat/.node \
RUN chown -R {{ .user }} $NODE_PATH
USER {{ .user }}
# If this fails dump the NPM logs
RUN npm i -g --loglevel verbose -f @elastic/synthetics || sh -c 'tail -n +1 /root/.npm/_logs/* && exit 1'
RUN npm i -g --loglevel verbose -f @elastic/synthetics@stack_release || sh -c 'tail -n +1 /root/.npm/_logs/* && exit 1'
RUN chmod ug+rwX -R $NODE_PATH
USER root

Expand Down

0 comments on commit 22f20ad

Please sign in to comment.