fix: remove grpc-client-nginx-module #1981
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: package apisix-dashabord rpm for el8 | |
on: | |
push: | |
branches: [ master ] | |
tags: | |
- "v*" | |
paths-ignore: | |
- '*.md' | |
pull_request: | |
branches: [ master ] | |
paths-ignore: | |
- '*.md' | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
env: | |
DASHBOARD_VERSION: "3.0.1" | |
DASHBOARD_BRANCH: "release/3.0" | |
services: | |
etcd: | |
image: bitnami/etcd:3.4.0 | |
ports: | |
- 2379:2379 | |
- 2380:2380 | |
env: | |
ALLOW_NONE_AUTHENTICATION: yes | |
ETCD_ADVERTISE_CLIENT_URLS: http://0.0.0.0:2379 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: install dependencies | |
run: | | |
sudo apt-get install -y make ruby ruby-dev rubygems build-essential | |
sudo gem install --no-document fpm | |
sudo apt-get install -y rpm | |
- name: run apisix-dashboard packaging test | |
run: | | |
make package type=rpm app=dashboard version=${DASHBOARD_VERSION} checkout=${DASHBOARD_BRANCH} image_base=centos image_tag=8 | |
- name: Run centos8 docker and mapping rpm into container | |
run: | | |
docker run -itd -v $PWD/output:/apisix-dashboard --name centos8Instance --net="host" docker.io/centos:8 /bin/bash | |
- name: Install rpm package | |
run: | | |
docker exec centos8Instance bash -c "sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Linux-*" | |
docker exec centos8Instance bash -c "sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-Linux-*" | |
docker exec centos8Instance bash -c "dnf install -y centos-release-stream" | |
docker exec centos8Instance bash -c "dnf swap -y centos-{linux,stream}-repos" | |
docker exec centos8Instance bash -c "dnf distro-sync -y" | |
docker exec centos8Instance bash -c "yum install -y /apisix-dashboard/apisix-dashboard-${DASHBOARD_VERSION}-0.el8.x86_64.rpm" | |
docker logs centos8Instance | |
docker exec centos8Instance bash -c "cd /usr/local/apisix/dashboard/ && nohup ./manager-api &" | |
- name: Run test cases | |
run: | | |
code=$(curl -k -i -m 20 -o /dev/null -s -w %{http_code} http://127.0.0.1:9000) | |
if [ ! $code -eq 200 ]; then | |
echo "failed: failed to install Apache APISIX Dashboard by rpm" | |
exit 1 | |
fi | |
- name: Publish Artifact | |
uses: actions/[email protected] | |
with: | |
name: apisix-dashboard-${{ env.DASHBOARD_VERSION }}-0.el8.x86_64.rpm | |
path: output/apisix-dashboard-${{ env.DASHBOARD_VERSION }}-0.el8.x86_64.rpm | |
retention-days: 5 | |
if-no-files-found: error |