mirror of
https://github.com/falcosecurity/falco.git
synced 2025-10-22 12:27:10 +00:00
@@ -1,5 +1,24 @@
|
||||
version: 2
|
||||
version: 2.1
|
||||
jobs:
|
||||
"build-on-arm64":
|
||||
machine:
|
||||
enabled: true
|
||||
image: ubuntu-2004:202101-01
|
||||
resource-class: arm.medium
|
||||
steps:
|
||||
- run:
|
||||
- command: |
|
||||
docker run -e BUILD_TYPE="release" -it falcosecturity/falco-builder:latest /bin/sh -c "cd source/falco && \
|
||||
./usr/bin/entrypoint cmake && \
|
||||
./usr/bin/entrypoint all && \
|
||||
./usr/bin/entrypoint tests && \
|
||||
./usr/bin/entrypoint package && \
|
||||
cd ../.. && \
|
||||
mkdir -p /temp/packages && \
|
||||
cp /build/release/*.deb /temp/packages && \
|
||||
cp /build/release/*/tar.gz /temp/packages && \
|
||||
cp /build/release/*.rpm /temp/packages"
|
||||
|
||||
# Build a statically linked Falco release binary using musl
|
||||
# This build is 100% static, there are no host dependencies
|
||||
"build/musl":
|
||||
@@ -236,6 +255,45 @@ jobs:
|
||||
command: |
|
||||
FALCO_VERSION=$(cat /build/release/userspace/falco/config_falco.h | grep 'FALCO_VERSION ' | cut -d' ' -f3 | sed -e 's/^"//' -e 's/"$//')
|
||||
/source/falco/scripts/publish-deb -f /build/release/falco-${FALCO_VERSION}-x86_64.deb -r deb-dev
|
||||
|
||||
"publish/packages-dev-arm64":
|
||||
machine:
|
||||
enabled: true
|
||||
image: ubuntu-2004:202101-01
|
||||
resource-class: arm.medium
|
||||
steps:
|
||||
- run:
|
||||
name: Setup
|
||||
command: |
|
||||
docker run -it docker.io/centos:7 /bin/sh -c "yum install epel-release -y && \
|
||||
yum update -y && \
|
||||
yum install createrepo gpg python python-pip -y && \
|
||||
pip install awscli==1.19.47 && \
|
||||
echo $GPG_KEY | base64 -d | gpg --import && \
|
||||
FALCO_VERSION=$(cat /build/release/userspace/falco/config_falco.h | grep 'FALCO_VERSION' | cut -d' ' -f3 | sed -e 's/^"//' -e 's/"$//') && \
|
||||
/source/falco/scripts/publish-rpm -f /build/release/falco-${FALCO_VERSION}-aarch64.rpm -r rpm-dev && \
|
||||
FALCO_VERSION=$(cat /build/release/userspace/falco/config_falco.h | grep 'FALCO_VERSION ' | cut -d' ' -f3 | sed -e 's/^"//' -e 's/"$//') && \
|
||||
/source/falco/scripts/publish-bin -f /build/release/falco-${FALCO_VERSION}-aarch64.tar.gz -r bin-dev -a aarch64 && \
|
||||
FALCO_VERSION=$(cat /build-static/release/userspace/falco/config_falco.h | grep 'FALCO_VERSION ' | cut -d' ' -f3 | sed -e 's/^"//' -e 's/"$//') && \
|
||||
cp -f /build-static/release/falco-${FALCO_VERSION}-aarch64.tar.gz /build-static/release/falco-${FALCO_VERSION}-static-aarch64.tar.gz && \
|
||||
/source/falco/scripts/publish-bin -f /build-static/release/falco-${FALCO_VERSION}-static-aarch64.tar.gz -r bin-dev -a aarch64"
|
||||
|
||||
"publish/packages-deb-dev-arm64":
|
||||
machine:
|
||||
enabled: true
|
||||
image: ubuntu-2004:202101-01
|
||||
resource-class: arm.medium
|
||||
steps:
|
||||
- run:
|
||||
name: Setup
|
||||
command: |
|
||||
docker run -it docker.io/debian:stable /bin/sh -c "apt update -y && \
|
||||
apt-get install apt-utils bzip2 gpg python python3-pip -y && \
|
||||
pip install awscli && \
|
||||
echo $GPG_KEY | base64 -d | gpg --import && \
|
||||
FALCO_VERSION=$(cat /build/release/userspace/falco/config_falco.h | grep 'FALCO_VERSION ' | cut -d' ' -f3 | sed -e 's/^"//' -e 's/"$//') && \
|
||||
/source/falco/scripts/publish-deb -f /build/release/falco-${FALCO_VERSION}-aarch64.deb -r deb-dev"
|
||||
|
||||
# Publish docker packages
|
||||
"publish/docker-dev":
|
||||
docker:
|
||||
@@ -425,7 +483,7 @@ jobs:
|
||||
docker tag falcosecurity/falco-driver-loader:latest public.ecr.aws/falcosecurity/falco-driver-loader:latest
|
||||
docker push public.ecr.aws/falcosecurity/falco-driver-loader:latest
|
||||
workflows:
|
||||
version: 2
|
||||
version: 2.1
|
||||
build_and_test:
|
||||
jobs:
|
||||
- "build/musl"
|
||||
|
Reference in New Issue
Block a user