platform: linux

image_resource:
  type: registry-image
  source:
    repository: concourse/oci-build-task

inputs:
  - name: project-src
    path: .

outputs:
  - name: image

caches:
  - path: cache

params:
  CONTEXT: .
  # Reference: https://concourse-ci.org/building-an-image-and-using-it-in-a-task.html#build-the-image
  UNPACK_ROOTFS: true

run:
  path: build