-
Notifications
You must be signed in to change notification settings - Fork 1.6k
53 lines (47 loc) · 1.67 KB
/
build-master-packages.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
on:
push:${{ github.actor }}
branches:
- master
name: Build packages for master
jobs:
build-distro-packages:
name: build packages
strategy:
max-parallel: 48
fail-fast: true
matrix:
distro: [ ubuntu/16.04, ubuntu/18.04, ubuntu/20.04, debian/buster ]
runs-on: [ ubuntu-latest ] #self-hosted, Linux, X64, packet-builder]
steps:
- name: Setup environment
run: |
sudo apt-get install --yes qemu binfmt-support qemu-user-static qemu-utils qemu-efi-aarch64 qemu-system-arm docker.io containerd runc
sudo systemctl unmask docker && sudo systemctl start docker
docker run --rm --privileged --name qemu multiarch/qemu-user-static:register --reset
- uses: frabert/replace-string-action@master
id: formatted_distro
with:
pattern: '(.*)\/(.*)$'
string: "${{ matrix.distro }}"
replace-with: '$1-$2'
flags: 'g'
- uses: actions/checkout@v2
with:
repository: fluent/fluent-bit-packaging
fetch-depth: 1
path: packaging
- name: Build the distro artifacts
run: ./build.sh -v master -d ${{ env.distro }} -b master
env:
distro: ${{ matrix.distro }}
working-directory: packaging
- name: Store the master package artifacts
uses: actions/upload-artifact@v2
with:
name: packages-${{env.release}}-${{env.bucket-name}}
path: |
packaging/packages/${{env.distro}}/${{env.release}}/**/*
env:
bucket-name: ${{ steps.formatted_distro.outputs.replaced }}
release: master
distro: ${{ matrix.distro }}