image: shreysway07/srijan-alpine:latest
pipelines:
default:
- step:
name: Build Docker images & push to ECR
services:
- docker
script:
- make build
- aws configure set default.region ${ECR_REGION}
- aws configure set aws_access_key_id ${ECR_KEY}
- aws configure set aws_secret_access_key ${ECR_SECRET}
- docker login ${ECR_URL} --username AWS --password $(aws ecr get-login-password --region ${ECR_REGION})
- bash image-scanning.sh
- step:
name: Force Deploy Image To ECR
trigger: manual
services:
- docker
script:
- aws configure set default.region ${ECR_REGION}
- aws configure set aws_access_key_id ${ECR_KEY}
- aws configure set aws_secret_access_key ${ECR_SECRET}
- docker login ${ECR_URL} --username AWS --password $(aws ecr get-login-password --region ${ECR_REGION})
#- make build
- make push_image_1
- make push_image_2
Hey team I want to use cache of make build command in step 2 which am using in step 1 . How can I use that. Any help is highly appreciated .