Hi all, I have a pipeline to build docker images. The job is triggered by a change to the
resources: - name: my-git type: git source: uri: … branch: "master" paths: - "dockerfiles/image1/TAG" - name: my-docker-image type: docker-image source: … jobs: - name: test plan: - get: my-repo resource: my-git trigger: true - put: my-docker-image params: build: my-repo/dockerfiles/image1 tag_file: my-repo/dockerfiles/image1/TAG
now, I’d want to add more images like the
image1/ directory, and my question is: what’s the best approach to not repeat the resource and job for each image, and only build the image which TAG file has changed.