Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add step to push to aws ecr too #265

Merged
merged 1 commit into from
Aug 13, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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