Browse Source

cds update 0.49.0

Signed-off-by: pipelinebuilder_pel7ppc64lebuilder0 <pipelinebuilder@powerel.org>
master
pipelinebuilder_pel7ppc64lebuilder0 3 years ago
parent
commit
22ae8253c3
  1. 51
      SPECS/cds.spec

51
SPECS/cds.spec

@ -1,5 +1,11 @@ @@ -1,5 +1,11 @@
%global _hardened_build 1
%define _user cicd
%define _group cicd
%define _varlib /var/lib/cds/
%define _logdir /var/log/cds/

Name: cds
Version: 0.48.1
Version: 0.49.0
Release: 1%{?dist}
Summary: Pipeline
Group: System/Pipeline
@ -14,6 +20,21 @@ BuildRequires: npm @@ -14,6 +20,21 @@ BuildRequires: npm
%description


%package engine
Summary: Engine
%description engine


%package worker
Summary: Worker
%description worker


%package cli
Summary: CLI
%description cli


%prep
%setup -q -T -c %{name}-%{version}
export GOPATH=`pwd`
@ -48,24 +69,40 @@ pushd tools/os-ansible-inventory @@ -48,24 +69,40 @@ pushd tools/os-ansible-inventory
go build -ldflags "-X github.com/ovh/cds/sdk.VERSION=%{version} -X github.com/ovh/cds/sdk.GOOS=linux -X github.com/ovh/cds/sdk.GOARCH=$ARCH -X github.com/ovh/cds/sdk.GITHASH=%{version} -X github.com/ovh/cds/sdk.BUILDTIME=$DATE -X github.com/ovh/cds/sdk.BINARY=os-ansible-inventory -extldflags -s -w -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n')" -o dist/os-ansible-inventory .
popd
pushd ui
rm -rf package-lock.json
sed '/sentry/d' -i package.json
sed 's|"build:analyse": "webpack-bundle-analyzer dist/stats.json",|"build:analyse": "webpack-bundle-analyzer dist/stats.json"|' -i package.json
npm install
npm build
npm install ng
NODE_OPTIONS="--max-old-space-size=8192" node_modules/@angular/cli/bin/ng build --prod
popd




%install
mkdir -p %{buildroot}%{_bindir}
cp src/github.com/ovh/cds/cli/cdsctl/dist/cdscli %{buildroot}%{_bindir}
cp src/github.com/ovh/cds/engine/dist/cds-engine %{buildroot}%{_bindir}
cp src/github.com/ovh/cds/engine/worker/dist/cds-worker %{buildroot}%{_bindir}
cp src/github.com/ovh/cds/tools/os-ansible-inventory/dist/os-ansible-inventory %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_varlib}
cp src/github.com/ovh/cds/engine/dist/cds-engine %{buildroot}%{_varlib}
cp src/github.com/ovh/cds/tools/os-ansible-inventory/dist/os-ansible-inventory %{buildroot}%{_varlib}
cp -rv src/github.com/ovh/cds/ui/dist/ %{buildroot}%{_varlib}/ui/


%files


%files engine
%{_varlib}/cds-engine
%{_varlib}/os-ansible-inventory
%{_varlib}/ui/


%files worker
%{_bindir}/cds-worker

%changelog

%files cli
%{_bindir}/cdscli


%changelog

Loading…
Cancel
Save