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 steps to release oci images to aws ecr #270

Merged
merged 2 commits into from
Aug 16, 2021
Merged
Show file tree
Hide file tree
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
18 changes: 16 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,23 @@ jobs:
steps:
- checkout
- setup_remote_docker
- run:
name: Install pre-requisites
command: |
DIR=$(mktemp -d) && pushd $DIR
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
./aws/install -i $HOME/.local/aws-cli -b $HOME/.local/bin
popd && rm -r $DIR
- run:
name: Prepare env
command: |
echo ${DOCKERHUB_SECRET} | docker login -u ${DOCKERHUB_USER} --password-stdin
- run: curl -sL https://git.io/goreleaser | bash
aws ecr-public get-login-password --region us-east-1 | \
docker login --username AWS --password-stdin public.ecr.aws/falcosecurity
- run:
name: Release
command: curl -sL https://git.io/goreleaser | bash

workflows:
main:
Expand Down Expand Up @@ -115,7 +127,9 @@ workflows:
branches:
only: master
- release:
context: falco
context:
- falco
- test-infra
requires:
- test
- lint
Expand Down
2 changes: 2 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ dockers:
image_templates:
- "falcosecurity/falcosidekick:stable"
- "falcosecurity/falcosidekick:{{ .Version }}"
- "public.ecr.aws/falcosecurity/falcosidekick:stable"
- "public.ecr.aws/falcosecurity/falcosidekick:{{ .Version }}"
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
Expand Down