This is an automated email from the ASF dual-hosted git repository. jstastnycz pushed a commit to branch radtriste-fix-pipelines in repository https://gitbox.apache.org/repos/asf/incubator-kie-kogito-pipelines.git
commit 2a0adebdfffc180f2991b0c3be56b6a985855360 Author: Jan Stastny <[email protected]> AuthorDate: Thu Nov 2 15:55:37 2023 +0100 kie-issues#670: Install hub CLI for GH operations (#1114) Co-authored-by: jstastny-cz <[email protected]> --- .ci/jenkins/Jenkinsfile.build-kogito-ci-image | 1 + apache-nodes/Dockerfile.kogito-ci-build | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/.ci/jenkins/Jenkinsfile.build-kogito-ci-image b/.ci/jenkins/Jenkinsfile.build-kogito-ci-image index fba0135f..3f5b9480 100644 --- a/.ci/jenkins/Jenkinsfile.build-kogito-ci-image +++ b/.ci/jenkins/Jenkinsfile.build-kogito-ci-image @@ -84,6 +84,7 @@ pipeline { gh version kubectl version --client oc version --client + hub version ''' echo 'Test docker' diff --git a/apache-nodes/Dockerfile.kogito-ci-build b/apache-nodes/Dockerfile.kogito-ci-build index b8913629..e0cffd5f 100644 --- a/apache-nodes/Dockerfile.kogito-ci-build +++ b/apache-nodes/Dockerfile.kogito-ci-build @@ -114,6 +114,15 @@ RUN wget https://go.dev/dl/go1.19.10.linux-amd64.tar.gz -P /tmp && \ rm -rf /tmp/go* && \ sudo alternatives --install /usr/local/bin/go go /opt/golang/go/bin/go 1 +# Install hub CLI (used for GitHub api operations) +RUN wget https://github.com/mislav/hub/releases/download/v2.14.2/hub-linux-amd64-2.14.2.tgz -O /tmp/hub.tgz && \ + (if ([ ! -d /opt/hub ]);then sudo mkdir /opt/hub;else rm -rf /opt/hub/*; fi;) && \ + sudo tar -C /opt/hub -xzf /tmp/hub.tgz --strip-components=1 && \ + sudo chown -R nonrootuser:nonrootuser /opt/hub/bin/hub && \ + sudo chmod -R 755 /opt/hub/bin/hub && \ + rm -rf /tmp/hub.tgz && \ + sudo alternatives --install /usr/local/bin/hub hub /opt/hub/bin/hub 1 + # Cekit RUN pip3.11 install cekit==4.8.0 behave lxml docker docker-squash elementPath pyyaml ruamel.yaml python-dateutil Jinja2 pykwalify colorlog click RUN wget https://github.com/openshift/source-to-image/releases/download/v1.3.8/source-to-image-v1.3.8-980ca195-linux-amd64.tar.gz -P /tmp && \ --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
