Skip to content

Commit 8fa77bc

Browse files
committed
Add step to upgrade nodejs in the package upgrade workflows
Add step to upgrade nodejs to >= 6.x in the package upgrade workflows.
1 parent aceed4e commit 8fa77bc

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

actions/workflows/st2_pkg_upgrade_deb.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ workflows:
1313
- version # Version to upgrade to
1414

1515
tasks:
16+
upgrade_nodejs:
17+
action: core.remote
18+
input:
19+
hosts: <% $.host %>
20+
cmd: "curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -"
21+
timeout: 180
22+
on-success:
23+
- install_pkg
1624
install_pkg:
1725
with-items: pkg in <% $.pkg_list %>
1826
workflow: install_latest_revision_of_pkg

actions/workflows/st2_pkg_upgrade_rpm.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ workflows:
1313
- version # Version to upgrade to
1414

1515
tasks:
16+
upgrade_nodejs:
17+
action: core.remote
18+
input:
19+
hosts: <% $.host %>
20+
cmd: "curl -sL https://rpm.nodesource.com/setup_6.x | sudo -E bash -; sudo yum clean all; sudo rpm -e --nodeps npm; sudo yum update -y nodejs || true"
21+
timeout: 180
22+
on-success:
23+
- install_pkg
1624
install_pkg:
1725
with-items: pkg in <% $.pkg_list %>
1826
workflow: install_latest_revision_of_pkg

0 commit comments

Comments
 (0)