summaryrefslogtreecommitdiffstats
path: root/src/fluent-bit/.github/workflows/build-master-packages.yaml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 12:08:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 12:08:18 +0000
commit5da14042f70711ea5cf66e034699730335462f66 (patch)
tree0f6354ccac934ed87a2d555f45be4c831cf92f4a /src/fluent-bit/.github/workflows/build-master-packages.yaml
parentReleasing debian version 1.44.3-2. (diff)
downloadnetdata-5da14042f70711ea5cf66e034699730335462f66.tar.xz
netdata-5da14042f70711ea5cf66e034699730335462f66.zip
Merging upstream version 1.45.3+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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 }}