You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by ma...@apache.org on 2021/09/24 05:38:53 UTC
[apisix] 01/01: fix: Failed to build the rpm
This is an automated email from the ASF dual-hosted git repository.
majunjie pushed a commit to branch release/trpmfailure
in repository https://gitbox.apache.org/repos/asf/apisix.git
commit d14cfd9ddf5b46675cdc246a393f4f0d98ee9e10
Author: imjoey <ma...@apache.org>
AuthorDate: Fri Sep 24 12:25:24 2021 +0800
fix: Failed to build the rpm
Signed-off-by: imjoey <ma...@apache.org>
---
.github/workflows/centos7-ci.yml | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/centos7-ci.yml b/.github/workflows/centos7-ci.yml
index 7801eb2..be94a7e 100644
--- a/.github/workflows/centos7-ci.yml
+++ b/.github/workflows/centos7-ci.yml
@@ -48,8 +48,13 @@ jobs:
export VERSION=${{ steps.branch_env.outputs.version }}
sudo gem install --no-document fpm
git clone -b v2.2.1 https://github.com/api7/apisix-build-tools.git
+
+ # move codes under build tool
+ mkdir ./apisix-build-tools/apisix
+ for dir in `ls|grep -v "^apisix-build-tools$"`;do cp -r $dir ./apisix-build-tools/apisix/;done
+
cd apisix-build-tools
- make package type=rpm app=apisix version=${VERSION} checkout=release/${VERSION} image_base=centos image_tag=7 local_code_path=../apisix
+ make package type=rpm app=apisix version=${VERSION} checkout=release/${VERSION} image_base=centos image_tag=7 local_code_path=./apisix
cd ..
rm -rf $(ls -1 --ignore=apisix-build-tools --ignore=t --ignore=utils --ignore=ci --ignore=Makefile --ignore=rockspec)