I am using the aws-ecr/build-and-push-image
- it’s my first time using orbs. It works well for my Docker build use-case.
Here is my job:
jobs:
test_image_php_build:
jobs:
- aws-ecr/build-and-push-image:
name: "test_docker_php"
context: "subscriptions-stage"
account-url: AWS_ECR_ACCOUNT_URL
extra-build-args: "--build-arg AWS_ECR_ACCOUNT_URL"
repo: "qa"
path: "tests-php/docker"
tag: "php"
executor: ubuntu20
filters:
branches:
only:
- evaluate-symfony-testing
executors:
ubuntu20:
machine:
image: ubuntu-2004:202101-01
However my repo is huge, and I don’t need the whole of it - it takes around 100 seconds to clone. I only need one folder with the Dockerfile
in it. Is there a way to customise the docker clone
command while still making use of the orb? I dare say there is a way to do this by dropping the orb and doing the build manually, but I’d rather not do that.