system-config/playbooks/zuul/gerrit/submodules.yaml
Ian Wienand c78e410373
gerrit-build: jammy updates: update to nodejs 18.x, allow submodule clones
It seems there's no jammy repositories for nodejs 10.x.  Upstream
reccommends "at least" LTS v16 -- the current LTS is 18 so let's try
that.

Also update the git config to allow the submodule clones per the
recent CVE's.

[1] https://gerrit.googlesource.com/gerrit/+/master/polygerrit-ui/README.md#installing-node_js-and-npm-packages

Change-Id: I1492e4c136c18155eb3cb7fed24b413b250c78b5
2022-11-11 12:50:51 +11:00

11 lines
382 B
YAML

- hosts: all
tasks:
# https://github.blog/2022-10-18-git-security-vulnerabilities-announced/
- name: Checkout submodules
shell: "if [ -d {{ item }} ] ; then git -c protocol.file.allow=always submodule update --init {{ item }} ; fi"
args:
chdir: /home/zuul/src/gerrit.googlesource.com/gerrit
loop:
- modules/jgit
- polymer-bridges