summaryrefslogtreecommitdiffstats
path: root/src/fluent-bit/.github/workflows/build-master-packages.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'src/fluent-bit/.github/workflows/build-master-packages.yaml')
-rw-r--r--src/fluent-bit/.github/workflows/build-master-packages.yaml51
1 files changed, 51 insertions, 0 deletions
diff --git a/src/fluent-bit/.github/workflows/build-master-packages.yaml b/src/fluent-bit/.github/workflows/build-master-packages.yaml
new file mode 100644
index 000000000..5698abfe5
--- /dev/null
+++ b/src/fluent-bit/.github/workflows/build-master-packages.yaml
@@ -0,0 +1,51 @@
+on:
+ push:
+ branches:
+ - master
+ workflow_dispatch:
+ inputs:
+ version:
+ description: Version of Fluent Bit to build
+ required: false
+ default: master
+ target:
+ description: Only build a specific target, intended for debug/test builds only.
+ required: false
+ default: ""
+
+name: Build packages for master
+jobs:
+ master-build-generate-matrix:
+ name: Staging build matrix
+ runs-on: ubuntu-latest
+ outputs:
+ build-matrix: ${{ steps.set-matrix.outputs.matrix }}
+ steps:
+ # Set up the list of target to build so we can pass the JSON to the reusable job
+ - id: set-matrix
+ run: |
+ matrix=$((
+ echo '{ "distro" : [ "debian/bullseye", "ubuntu/20.04", "ubuntu/22.04", "centos/7" ]}'
+ ) | jq -c .)
+ if [ -n "${{ github.event.inputs.target || '' }}" ]; then
+ echo "Overriding matrix to build: ${{ github.event.inputs.target }}"
+ matrix=$((
+ echo '{ "distro" : ['
+ echo '"${{ github.event.inputs.target }}"'
+ echo ']}'
+ ) | jq -c .)
+ fi
+ echo $matrix
+ echo $matrix| jq .
+ echo "matrix=$matrix" >> $GITHUB_OUTPUT
+ shell: bash
+
+ master-build-packages:
+ needs: master-build-generate-matrix
+ uses: ./.github/workflows/call-build-linux-packages.yaml
+ with:
+ version: master
+ ref: master
+ build_matrix: ${{ needs.master-build-generate-matrix.outputs.build-matrix }}
+ secrets:
+ token: ${{ secrets.GITHUB_TOKEN }}