fix(.circleci): correctly publish the falco-driver-loader container image from master to AWS ECR gallery

Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
This commit is contained in:
Leo Di Donato 2021-01-15 10:43:47 +01:00 committed by poiana
parent c66d056f67
commit bb7ce37159

View File

@ -462,7 +462,7 @@ jobs:
- checkout - checkout
- setup_remote_docker - setup_remote_docker
- run: - run:
name: Build and publish no-driver to AWS name: Build and publish no-driver (dev) to AWS
command: | command: |
apk update apk update
apk add --update groff less py-pip apk add --update groff less py-pip
@ -474,7 +474,7 @@ jobs:
docker push "public.ecr.aws/falcosecurity/falco-no-driver:master" docker push "public.ecr.aws/falcosecurity/falco-no-driver:master"
docker push "public.ecr.aws/falcosecurity/falco:master-slim" docker push "public.ecr.aws/falcosecurity/falco:master-slim"
- run: - run:
name: Build and publish falco to AWS name: Build and publish falco (dev) to AWS
command: | command: |
apk update apk update
apk add --update groff less py-pip apk add --update groff less py-pip
@ -484,13 +484,12 @@ 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:master" docker push "public.ecr.aws/falcosecurity/falco:master"
- run: - run:
name: Build and publish driver-loader to AWS name: Build and publish driver-loader (dev) to AWS
command: | command: |
apk update apk update
apk add --update groff less py-pip apk add --update groff less py-pip
pip install awscli 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 FALCO_IMAGE_TAG=master -t "public.ecr.aws/falcosecurity/falco-driver-loader:master" docker/driver-loader
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 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" docker push "public.ecr.aws/falcosecurity/falco-driver-loader:master"
# Publish the packages # Publish the packages