Skip to content

Commit

Permalink
ci: Utiliza os executores do ECR
Browse files Browse the repository at this point in the history
  • Loading branch information
Álvaro Paiva committed Nov 1, 2022
1 parent 498392f commit 04b1530
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@ orbs:
aws-cli: circleci/aws-cli@3.1.3

executors:
docker-builder:
docker:
- image: meliuz/docker-builder:1.0.0
auth:
username: $DOCKER_USER
password: $DOCKER_PASS

builder:
docker:
- image: cimg/base:current
Expand All @@ -25,10 +18,10 @@ commands:
jobs:
lint:
docker:
- image: meliuz/docker-linter:1.2.0
auth:
username: $DOCKER_USER
password: $DOCKER_PASS
- image: $AWS_ECR_URI/docker-linter:latest
aws_auth:
aws_access_key_id: $AWS_ECR_ACCESS_KEY_ID
aws_secret_access_key: $AWS_ECR_SECRET_ACCESS_KEY

steps:
- checkout
Expand All @@ -43,7 +36,7 @@ jobs:
lint-yaml"
build:
executor: docker-builder
executor: builder
steps:
- checkout
- setup_remote_docker
Expand All @@ -52,9 +45,7 @@ jobs:
- run:
name: Build image
command: |
export APPLICATION_NAME=${CIRCLE_PROJECT_REPONAME}
build-image meliuz/${CIRCLE_PROJECT_REPONAME}:testing . APPLICATION_NAME
docker build --tag meliuz/${CIRCLE_PROJECT_REPONAME}:testing .
- run:
name: Save image
Expand All @@ -75,7 +66,7 @@ jobs:
- "*.tar"

push:
executor: docker-builder
executor: builder
steps:
- setup_remote_docker

Expand Down

0 comments on commit 04b1530

Please # to comment.