diff --git a/.circleci/config.yml b/.circleci/config.yml index 3958f7a6..30a0faf0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -461,6 +461,18 @@ jobs: at: / - checkout - 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: name: Build and publish falco to AWS 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 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" + - 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/packages": docker: @@ -546,6 +568,17 @@ jobs: at: / - checkout - 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: name: Build and publish falco to AWS 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 docker push "public.ecr.aws/falcosecurity/falco:${CIRCLE_TAG}" 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: version: 2 build_and_test: