-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add manual trigger to release apisix-runtime debian package (#399)
* ci: add manual trigger to build apisix-runtime debian package (#396) * ci: add manual trigger to build apisix-runtime debian package * rename * install dependencies * rename * change arch * change * use env.ARCH * set github env * add image arch * set default * use arch everywhere * use arm64v8 image * use linux/arm64 * use matrix.platform * fix * use same image diff platform * fix * use image name * use debian not ubuntu * a * make release * add tag name * use matrix.platform.arch * Update package-apisix-runtime-deb-openresty-1.21.yml (#398) - change tag name - add pull_request trigger * Update package-apisix-runtime-deb-openresty-1.21.yml (#400) * Update package-apisix-runtime-deb-openresty-1.21.yml (#401)
- Loading branch information
1 parent
25c106a
commit 4c58b69
Showing
2 changed files
with
67 additions
and
2 deletions.
There are no files selected for viewing
55 changes: 55 additions & 0 deletions
55
.github/workflows/package-apisix-runtime-deb-openresty-1.21.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
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: '' | ||
|
||
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 }} | ||
|
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