Skip to content

ci: add manual trigger to build apisix-runtime debian package #6

ci: add manual trigger to build apisix-runtime debian package

ci: add manual trigger to build apisix-runtime debian package #6

name: package apisix-runtime deb for debianbullseye-slim with openresty 1.21
on:
workflow_dispatch:
inputs:
tag_name:
description: 'Tag name for the release'
required: true
default: ''
pull_request:
jobs:
build:
timeout-minutes: 60
env:
BUILD_APISIX_RUNTIME_VERSION: 1.1.3
strategy:
matrix:
platform:
- runner: ubuntu-22.04
arch: amd64
- runner: buildjet-2vcpu-ubuntu-2204-arm
arch: arm64
runs-on: ${{ matrix.platform.runner }}
steps:
- uses: actions/checkout@v2
with:
ref: openresty/1.21.4
- name: Check arch
run: |
echo "ARCH: ${{ matrix.platform.arch }}"
- name: Install dependencies
run: |
sudo apt-get install -y make ruby ruby-dev rubygems build-essential
- name: Build apisix-runtime deb
run: |
if [ "${{ matrix.platform.arch }}" == "arm64" ]; then
make package type=deb app=apisix-runtime runtime_version=${BUILD_APISIX_RUNTIME_VERSION} image_base=debian image_tag=bullseye-slim arch=linux/arm64/v8
else
make package type=deb app=apisix-runtime runtime_version=${BUILD_APISIX_RUNTIME_VERSION} image_base=debian image_tag=bullseye-slim arch=linux/amd64
fi
- name: Release with Notes
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.event.inputs.tag_name }}
body: |
Release apisix-runtime ${{ github.event.inputs.tag_name }}
files: |
./output/apisix-runtime_${{ env.BUILD_APISIX_RUNTIME_VERSION }}-0~debianbullseye-slim_${{ matrix.platform.arch }}.deb
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}