Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions actions/workflows/st2_pkg_e2e_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,32 @@ tasks:
input:
hosts: <% ctx().vm_info.private_ip_address %>
timeout: 600
next:
- when: <% succeeded() %>
do: check_for_ubuntu_xenial
check_for_ubuntu_xenial:
action: core.remote
input:
hosts: <% ctx().vm_info.private_ip_address %>
cmd: grep 'Ubuntu 16' /etc/issue
next:
- when: <% succeeded() %>
do: install_python36
- when: <% failed() %>
do: check_debug_mode
install_python36:
action: core.remote_sudo
input:
hosts: <% ctx().vm_info.private_ip_address %>
cmd: |-
python3 --version
add-apt-repository ppa:deadsnakes/ppa --yes
apt-get update
apt-get install --yes python3.6
patch /etc/st2/st2.conf <<EOF
23a24
> python3_binary = /usr/bin/python3.6
EOF
next:
- when: <% succeeded() %>
do: check_debug_mode
Expand Down