Skip to content

Commit

Permalink
ci(circleci): publish oci images also to aws acr repositories
Browse files Browse the repository at this point in the history
Signed-off-by: maxgio92 <massimiliano.giovagnoli.1992@gmail.com>
  • Loading branch information
maxgio92 authored and poiana committed Aug 16, 2021
1 parent 9a8a4c6 commit 2ebc897
Showing 1 changed file with 16 additions and 2 deletions.
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

0 comments on commit 2ebc897

Please sign in to comment.