mirror of
https://github.com/falcosecurity/falco.git
synced 2025-09-13 05:22:34 +00:00
adding other alternate AWS builds to circleCI
Signed-off-by: jonahjon <jonahjones094@gmail.com>
This commit is contained in:
@@ -461,6 +461,18 @@ jobs:
|
|||||||
at: /
|
at: /
|
||||||
- checkout
|
- checkout
|
||||||
- setup_remote_docker
|
- setup_remote_docker
|
||||||
|
- run:
|
||||||
|
name: Build and publish no-driver to AWS
|
||||||
|
command: |
|
||||||
|
apk update
|
||||||
|
apk add --update groff less py-pip
|
||||||
|
pip install awscli
|
||||||
|
FALCO_VERSION=$(cat /build/release/userspace/falco/config_falco.h | grep 'FALCO_VERSION ' | cut -d' ' -f3 | sed -e 's/^"//' -e 's/"$//')
|
||||||
|
docker build --build-arg VERSION_BUCKET=deb-dev --build-arg FALCO_VERSION=${FALCO_VERSION} -t "public.ecr.aws/falcosecurity/falco-no-driver:master" docker/no-driver
|
||||||
|
docker tag public.ecr.aws/falcosecurity/falco-no-driver:master public.ecr.aws/falcosecurity/falco:master-slim
|
||||||
|
aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/falcosecurity
|
||||||
|
docker push "public.ecr.aws/falcosecurity/falco-no-driver:master"
|
||||||
|
docker push "public.ecr.aws/falcosecurity/falco:master-slim"
|
||||||
- run:
|
- run:
|
||||||
name: Build and publish falco to AWS
|
name: Build and publish falco to AWS
|
||||||
command: |
|
command: |
|
||||||
@@ -471,6 +483,16 @@ jobs:
|
|||||||
docker build --build-arg VERSION_BUCKET=deb-dev --build-arg FALCO_VERSION=${FALCO_VERSION} -t "public.ecr.aws/falcosecurity/falco:master" docker/falco
|
docker build --build-arg VERSION_BUCKET=deb-dev --build-arg FALCO_VERSION=${FALCO_VERSION} -t "public.ecr.aws/falcosecurity/falco:master" docker/falco
|
||||||
aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/falcosecurity
|
aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/falcosecurity
|
||||||
docker push "public.ecr.aws/falcosecurity/falco:master"
|
docker push "public.ecr.aws/falcosecurity/falco:master"
|
||||||
|
- run:
|
||||||
|
name: Build and publish driver-loader to AWS
|
||||||
|
command: |
|
||||||
|
apk update
|
||||||
|
apk add --update groff less py-pip
|
||||||
|
pip install awscli
|
||||||
|
FALCO_VERSION=$(cat /build/release/userspace/falco/config_falco.h | grep 'FALCO_VERSION ' | cut -d' ' -f3 | sed -e 's/^"//' -e 's/"$//')
|
||||||
|
docker build --build-arg VERSION_BUCKET=deb-dev --build-arg FALCO_VERSION=${FALCO_VERSION} -t "public.ecr.aws/falcosecurity/falco-driver-loader:master" docker/driver-loader
|
||||||
|
aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/falcosecurity
|
||||||
|
docker push "public.ecr.aws/falcosecurity/falco-driver-loader:master"
|
||||||
# Publish the packages
|
# Publish the packages
|
||||||
"publish/packages":
|
"publish/packages":
|
||||||
docker:
|
docker:
|
||||||
@@ -546,6 +568,17 @@ jobs:
|
|||||||
at: /
|
at: /
|
||||||
- checkout
|
- checkout
|
||||||
- setup_remote_docker
|
- setup_remote_docker
|
||||||
|
- run:
|
||||||
|
name: Build and publish no-driver to AWS
|
||||||
|
command: |
|
||||||
|
apk update
|
||||||
|
apk add --update groff less py-pip
|
||||||
|
pip install awscli
|
||||||
|
docker build --build-arg VERSION_BUCKET=deb --build-arg FALCO_VERSION=${CIRCLE_TAG} -t "public.ecr.aws/falcosecurity/falco-no-driver:${CIRCLE_TAG}" docker/no-driver
|
||||||
|
docker tag "public.ecr.aws/falcosecurity/falco-no-driver:${CIRCLE_TAG}" public.ecr.aws/falcosecurity/falco-no-driver:latest
|
||||||
|
aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/falcosecurity
|
||||||
|
docker push "public.ecr.aws/falcosecurity/falco-no-driver:${CIRCLE_TAG}"
|
||||||
|
docker push "public.ecr.aws/falcosecurity/falco-no-driver:latest"
|
||||||
- run:
|
- run:
|
||||||
name: Build and publish falco to AWS
|
name: Build and publish falco to AWS
|
||||||
command: |
|
command: |
|
||||||
@@ -557,6 +590,17 @@ jobs:
|
|||||||
aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/falcosecurity
|
aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/falcosecurity
|
||||||
docker push "public.ecr.aws/falcosecurity/falco:${CIRCLE_TAG}"
|
docker push "public.ecr.aws/falcosecurity/falco:${CIRCLE_TAG}"
|
||||||
docker push "public.ecr.aws/falcosecurity/falco:latest"
|
docker push "public.ecr.aws/falcosecurity/falco:latest"
|
||||||
|
- run:
|
||||||
|
name: Build and publish driver-loader to AWS
|
||||||
|
command: |
|
||||||
|
apk update
|
||||||
|
apk add --update groff less py-pip
|
||||||
|
pip install awscli
|
||||||
|
docker build --build-arg VERSION_BUCKET=deb --build-arg FALCO_VERSION=${CIRCLE_TAG} -t "public.ecr.aws/falcosecurity/falco-driver-loader:${CIRCLE_TAG}" docker/driver-loader
|
||||||
|
docker tag "public.ecr.aws/falcosecurity/falco-driver-loader:${CIRCLE_TAG}" public.ecr.aws/falcosecurity/falco-driver-loader:latest
|
||||||
|
aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/falcosecurity
|
||||||
|
docker push "public.ecr.aws/falcosecurity/falco-driver-loader:${CIRCLE_TAG}"
|
||||||
|
docker push "public.ecr.aws/falcosecurity/falco-driver-loader:latest"
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
build_and_test:
|
build_and_test:
|
||||||
|
Reference in New Issue
Block a user