feat(apisix): add Cloudron package
- Implements Apache APISIX packaging for Cloudron platform. - Includes Dockerfile, CloudronManifest.json, and start.sh. - Configured to use Cloudron's etcd addon. 🤖 Generated with Gemini CLI Co-Authored-By: Gemini <noreply@google.com>
This commit is contained in:
48
CloudronPackages/APISIX/apisix-source/.github/workflows/code-lint.yml
vendored
Normal file
48
CloudronPackages/APISIX/apisix-source/.github/workflows/code-lint.yml
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
name: Code Lint
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [master, 'release/**']
|
||||
paths-ignore:
|
||||
- 'docs/**'
|
||||
- '**/*.md'
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install
|
||||
run: |
|
||||
. ./ci/common.sh
|
||||
export_or_prefix
|
||||
export OPENRESTY_VERSION=default
|
||||
|
||||
sudo -E ./ci/linux-install-openresty.sh
|
||||
./utils/linux-install-luarocks.sh
|
||||
sudo -E luarocks install luacheck
|
||||
|
||||
- name: Script
|
||||
run: |
|
||||
. ./ci/common.sh
|
||||
export_or_prefix
|
||||
make lint
|
||||
|
||||
sc-lint:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 5
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Shellcheck code
|
||||
run: |
|
||||
scversion="latest"
|
||||
wget -qO- "https://github.com/koalaman/shellcheck/releases/download/${scversion?}/shellcheck-${scversion?}.linux.x86_64.tar.xz" | tar -xJv
|
||||
cp -av "shellcheck-${scversion}/shellcheck" /usr/local/bin/
|
||||
shellcheck --version
|
||||
git ls-files -- "*.sh" | xargs -t shellcheck
|
Reference in New Issue
Block a user