From 2fadfdb8399f8f9ce28e584b176e8f1ad9b3c7d5 Mon Sep 17 00:00:00 2001 From: maxgio92 Date: Wed, 11 Aug 2021 14:29:38 +0200 Subject: [PATCH] ci: add step to push to aws ecr too Signed-off-by: maxgio92 --- .circleci/config.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0669d0c68..20bb686e0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,6 +3,9 @@ executors: default: docker: - image: circleci/golang:1.16.0 + docker-build: + docker: + - image: docker:stable jobs: lint: @@ -39,6 +42,26 @@ jobs: echo ${DOCKERHUB_SECRET} | docker login -u ${DOCKERHUB_USER} --password-stdin docker push falcosecurity/falcosidekick:latest + build-push-ecr: + executor: + name: docker-build + steps: + - checkout + - setup_remote_docker + - run: make build-image + - run: + command: | + docker tag falcosecurity/falcosidekick:latest \ + public.ecr.aws/falcosecurity/falcosidekick:latest + - run: + command: | + apk update + apk add --update groff less py-pip + pip install awscli + 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/falcosidekick:latest + release: executor: name: default @@ -79,6 +102,14 @@ workflows: filters: branches: only: master + - build-push-ecr: + context: test-infra + requires: + - test + - lint + filters: + branches: + only: master - release: context: falco requires: