mirror of
https://github.com/falcosecurity/falco.git
synced 2025-06-29 16:17:32 +00:00
chore(ci): fixed up master and release yamls.
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
This commit is contained in:
parent
ac4e27ccde
commit
be13ee044e
28
.github/workflows/master.yaml
vendored
28
.github/workflows/master.yaml
vendored
@ -23,40 +23,30 @@ jobs:
|
|||||||
|
|
||||||
publish-dev-packages:
|
publish-dev-packages:
|
||||||
needs: [build-dev-packages, build-dev-packages-arm64]
|
needs: [build-dev-packages, build-dev-packages-arm64]
|
||||||
outputs:
|
uses: falcosecurity/falco/.github/workflows/reusable_publish_packages.yaml@main
|
||||||
version: ${{ steps.expose_version.outputs.version }}
|
with:
|
||||||
|
bucket: '-dev'
|
||||||
steps:
|
version: ${{ needs.build-dev-packages.outputs.version }}
|
||||||
- name: Publish packages
|
secrets: inherit
|
||||||
uses: falcosecurity/falco/.github/workflows/reusable_publish_packages.yaml@main
|
|
||||||
with:
|
|
||||||
bucket: '-dev'
|
|
||||||
version: ${{ needs.build-dev-packages.outputs.version }}
|
|
||||||
secrets: inherit
|
|
||||||
|
|
||||||
- name: Expose FALCO_VERSION
|
|
||||||
id: expose_version
|
|
||||||
run: |
|
|
||||||
echo "version=${{ needs.build-dev-packages.outputs.version }}" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
build-dev-docker:
|
build-dev-docker:
|
||||||
needs: publish-dev-packages
|
needs: [build-dev-packages, publish-dev-packages]
|
||||||
uses: falcosecurity/falco/.github/workflows/reusable_build_docker.yaml@main
|
uses: falcosecurity/falco/.github/workflows/reusable_build_docker.yaml@main
|
||||||
with:
|
with:
|
||||||
arch: x86_64
|
arch: x86_64
|
||||||
tagname: master
|
tagname: master
|
||||||
bucket: '-dev'
|
bucket: '-dev'
|
||||||
version: ${{ needs.publish-dev-packages.outputs.version }}
|
version: ${{ needs.build-dev-packages.outputs.version }}
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
build-dev-docker-arm64:
|
build-dev-docker-arm64:
|
||||||
needs: publish-dev-packages
|
needs: [build-dev-packages, publish-dev-packages]
|
||||||
uses: falcosecurity/falco/.github/workflows/reusable_build_docker.yaml@main
|
uses: falcosecurity/falco/.github/workflows/reusable_build_docker.yaml@main
|
||||||
with:
|
with:
|
||||||
arch: aarch64
|
arch: aarch64
|
||||||
tagname: master
|
tagname: master
|
||||||
bucket: '-dev'
|
bucket: '-dev'
|
||||||
version: ${{ needs.publish-dev-packages.outputs.version }}
|
version: ${{ needs.build-dev-packages.outputs.version }}
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
publish-dev-docker:
|
publish-dev-docker:
|
||||||
|
26
.github/workflows/release.yaml
vendored
26
.github/workflows/release.yaml
vendored
@ -24,37 +24,27 @@ jobs:
|
|||||||
|
|
||||||
publish-packages:
|
publish-packages:
|
||||||
needs: [build-packages, build-packages-arm64]
|
needs: [build-packages, build-packages-arm64]
|
||||||
outputs:
|
uses: falcosecurity/falco/.github/workflows/reusable_publish_packages.yaml@main
|
||||||
version: ${{ steps.expose_version.outputs.version }}
|
with:
|
||||||
|
version: ${{ needs.build-packages.outputs.version }}
|
||||||
steps:
|
secrets: inherit
|
||||||
- name: Publish packages
|
|
||||||
uses: falcosecurity/falco/.github/workflows/reusable_publish_packages.yaml@main
|
|
||||||
with:
|
|
||||||
version: ${{ needs.build-packages.outputs.version }}
|
|
||||||
secrets: inherit
|
|
||||||
|
|
||||||
- name: Expose FALCO_VERSION
|
|
||||||
id: expose_version
|
|
||||||
run: |
|
|
||||||
echo "version=${{ needs.build-packages.outputs.version }}" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
build-docker:
|
build-docker:
|
||||||
needs: publish-packages
|
needs: [build-packages, publish-packages]
|
||||||
uses: falcosecurity/falco/.github/workflows/reusable_build_docker.yaml@main
|
uses: falcosecurity/falco/.github/workflows/reusable_build_docker.yaml@main
|
||||||
with:
|
with:
|
||||||
arch: x86_64
|
arch: x86_64
|
||||||
tagname: ${{ github.ref_name }}
|
tagname: ${{ github.ref_name }}
|
||||||
version: ${{ needs.publish-packages.outputs.version }}
|
version: ${{ needs.build-packages.outputs.version }}
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
build-docker-arm64:
|
build-docker-arm64:
|
||||||
needs: publish-dev-packages
|
needs: [build-packages, publish-packages]
|
||||||
uses: falcosecurity/falco/.github/workflows/reusable_build_docker.yaml@main
|
uses: falcosecurity/falco/.github/workflows/reusable_build_docker.yaml@main
|
||||||
with:
|
with:
|
||||||
arch: aarch64
|
arch: aarch64
|
||||||
tagname: ${{ github.ref_name }}
|
tagname: ${{ github.ref_name }}
|
||||||
version: ${{ needs.publish-packages.outputs.version }}
|
version: ${{ needs.build-packages.outputs.version }}
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
publish-docker:
|
publish-docker:
|
||||||
|
2
.github/workflows/reusable_build_docker.yaml
vendored
2
.github/workflows/reusable_build_docker.yaml
vendored
@ -1,4 +1,4 @@
|
|||||||
# This is a reusable workflow used by dev_packages and release_packages
|
# This is a reusable workflow used by master and release CI
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
|
23
.github/workflows/reusable_build_packages.yaml
vendored
23
.github/workflows/reusable_build_packages.yaml
vendored
@ -1,4 +1,4 @@
|
|||||||
# This is a reusable workflow used by master_packages and release_packages
|
# This is a reusable workflow used by master and release CI
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
@ -30,8 +30,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Install build dependencies
|
- name: Install build dependencies
|
||||||
run: |
|
run: |
|
||||||
mkdir deps
|
mkdir deps && cd deps
|
||||||
pushd deps
|
|
||||||
apt update -y
|
apt update -y
|
||||||
DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends ca-certificates cmake build-essential clang-14 git pkg-config autoconf automake libelf-dev
|
DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends ca-certificates cmake build-essential clang-14 git pkg-config autoconf automake libelf-dev
|
||||||
update-alternatives --install /usr/bin/clang clang /usr/bin/clang-14 90
|
update-alternatives --install /usr/bin/clang clang /usr/bin/clang-14 90
|
||||||
@ -40,17 +39,13 @@ jobs:
|
|||||||
cd bpftool
|
cd bpftool
|
||||||
git submodule update --init
|
git submodule update --init
|
||||||
cd src && make install
|
cd src && make install
|
||||||
popd
|
|
||||||
|
|
||||||
- name: Build modern BPF skeleton
|
- name: Build modern BPF skeleton
|
||||||
run: |
|
run: |
|
||||||
pushd source
|
cd source
|
||||||
mkdir skeleton-build
|
mkdir skeleton-build && cd skeleton-build
|
||||||
pushd skeleton-build
|
|
||||||
cmake -DUSE_BUNDLED_DEPS=ON -DBUILD_FALCO_MODERN_BPF=ON -DCREATE_TEST_TARGETS=Off ..
|
cmake -DUSE_BUNDLED_DEPS=ON -DBUILD_FALCO_MODERN_BPF=ON -DCREATE_TEST_TARGETS=Off ..
|
||||||
make ProbeSkeleton
|
make ProbeSkeleton
|
||||||
popd
|
|
||||||
popd
|
|
||||||
|
|
||||||
- name: Build Falco packages
|
- name: Build Falco packages
|
||||||
run: |
|
run: |
|
||||||
@ -118,22 +113,18 @@ jobs:
|
|||||||
|
|
||||||
- name: Prepare project
|
- name: Prepare project
|
||||||
run: |
|
run: |
|
||||||
mkdir build
|
mkdir build && cd build
|
||||||
pushd build
|
|
||||||
cmake -DCPACK_GENERATOR=TGZ -DBUILD_BPF=Off -DBUILD_DRIVER=Off -DCMAKE_BUILD_TYPE=Release -DUSE_BUNDLED_DEPS=On -DUSE_BUNDLED_LIBELF=Off -DBUILD_LIBSCAP_MODERN_BPF=ON -DMUSL_OPTIMIZED_BUILD=On -DFALCO_ETC_DIR=/etc/falco /source-static/falco
|
cmake -DCPACK_GENERATOR=TGZ -DBUILD_BPF=Off -DBUILD_DRIVER=Off -DCMAKE_BUILD_TYPE=Release -DUSE_BUNDLED_DEPS=On -DUSE_BUNDLED_LIBELF=Off -DBUILD_LIBSCAP_MODERN_BPF=ON -DMUSL_OPTIMIZED_BUILD=On -DFALCO_ETC_DIR=/etc/falco /source-static/falco
|
||||||
popd
|
|
||||||
|
|
||||||
- name: Build project
|
- name: Build project
|
||||||
run: |
|
run: |
|
||||||
pushd build
|
cd build
|
||||||
make -j6 all
|
make -j6 all
|
||||||
popd
|
|
||||||
|
|
||||||
- name: Build packages
|
- name: Build packages
|
||||||
run: |
|
run: |
|
||||||
pushd build
|
cd build
|
||||||
make -j6 package
|
make -j6 package
|
||||||
popd
|
|
||||||
|
|
||||||
- name: Upload Falco static package
|
- name: Upload Falco static package
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# This is a reusable workflow used by dev_packages and release_packages
|
# This is a reusable workflow used by master and release CI
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# This is a reusable workflow used by dev_packages and release_packages
|
# This is a reusable workflow used by master and release CI
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
|
Loading…
Reference in New Issue
Block a user