From 493bf0c86bc7cbcbba0bf883f4ca161c81b60111 Mon Sep 17 00:00:00 2001 From: Zhe Huang Date: Fri, 10 Apr 2020 11:58:11 -0400 Subject: [PATCH] Add verification to packaging job to make sure that the included submodule passes the verify job Signed-off-by: Zhe Huang Change-Id: I2adb050ca515bba4df421f24d5bab7ef55d3a59b --- ci/Dockerfile-package | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/ci/Dockerfile-package b/ci/Dockerfile-package index afb8a741..9b12cf95 100644 --- a/ci/Dockerfile-package +++ b/ci/Dockerfile-package @@ -15,11 +15,19 @@ ################################################################################ FROM buildpack-deps:stretch -RUN apt-get update && apt-get -q -y install debhelper dpkg-dev build-essential rsync +RUN apt-get update && apt-get -q -y install debhelper dpkg-dev build-essential rsync curl RUN mkdir /tmp/it-dep COPY . /tmp/it-dep WORKDIR /tmp/it-dep + +# Verify that the it/dep and the corresponding submodules are synced up +ARG GH=get_helm.sh +RUN curl --silent --show-error --connect-timeout 10 --retry 6 -L https://raw.githubusercontent.com/helm/helm/master/scripts/get -o ${GH} +RUN bash ${GH} +RUN helm init -c +RUN ./bin/verify-ric-charts + # building RIC deployment artifacts into a package RUN ./bin/package-ric-deployment-tools $(grep tag ./ci/package-tag.yaml | cut -f2 -d':') @@ -31,4 +39,3 @@ RUN ./bin/package-ric-deployment-tools $(grep tag ./ci/package-tag.yaml | cut -f # assumption is that the target directory is mounted as a volume. # ENTRYPOINT [ "ci/publish.sh" ] - -- 2.16.6