This is an automated email from the ASF dual-hosted git repository.
liuxiran pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-dashboard.git
The following commit(s) were added to refs/heads/master by this push:
new 65e2528 ci: optimize build rpm workflow with apisix-build-tools
v2.2.0 (#2133)
65e2528 is described below
commit 65e25289e6421e8b55e423e6050c2b39143bc165
Author: qsliu2017 <[email protected]>
AuthorDate: Sun Sep 12 15:13:34 2021 +0800
ci: optimize build rpm workflow with apisix-build-tools v2.2.0 (#2133)
---
.github/workflows/auto-build-rpm.yml | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/auto-build-rpm.yml
b/.github/workflows/auto-build-rpm.yml
index 4199b3a..4f41017 100644
--- a/.github/workflows/auto-build-rpm.yml
+++ b/.github/workflows/auto-build-rpm.yml
@@ -29,6 +29,16 @@ jobs:
- name: Check out code
uses: actions/checkout@v2
+ - uses: docker/setup-buildx-action@v1
+
+ - uses: actions/cache@v2
+ with:
+ path: /tmp/.buildx-cache
+ key: ${{ runner.os }}-buildx-apisixdashboard-${{ github.sha }}
+ restore-keys: |
+ ${{ runner.os }}-buildx-apisixdashboard-
+ ${{ runner.os }}-buildx-
+
- name: Extract branch name
id: branch_env
shell: bash
@@ -39,7 +49,7 @@ jobs:
run: |
export VERSION=${{ steps.branch_env.outputs.version }}
sudo gem install --no-document fpm
- git clone -b v2.1.0 https://github.com/api7/apisix-build-tools.git
+ git clone -b v2.2.0 https://github.com/api7/apisix-build-tools.git
# move codes under build tool
mkdir ./apisix-build-tools/apisix-dashboard
@@ -50,7 +60,7 @@ jobs:
if [ "$VERSION" != "merge" && "$VERSION" != "master" ];then
export checkout=release/${VERSION}
fi
- make package type=rpm app=dashboard version=${VERSION}
checkout=${checkout} image_base=centos image_tag=7
local_code_path=./apisix-dashboard
+ make package type=rpm app=dashboard version=${VERSION}
checkout=${checkout} image_base=centos image_tag=7
local_code_path=./apisix-dashboard buildx=True
- name: Run centos7 docker and mapping apisix into container
run: |