Skip to content

Commit

Permalink
ci: add step to push to aws ecr too
Browse files Browse the repository at this point in the history
Signed-off-by: maxgio92 <[email protected]>
  • Loading branch information
maxgio92 authored and poiana committed Aug 13, 2021
1 parent 2fdbf2e commit 2fadfdb
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ executors:
default:
docker:
- image: circleci/golang:1.16.0
docker-build:
docker:
- image: docker:stable

jobs:
lint:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 2fadfdb

Please sign in to comment.