docker-image-resource.dhall 832 B

1234567891011121314151617181920212223242526272829
  1. let Concourse = ../lib/dhall-concourse/types.dhall
  2. let Defaults = ../lib/dhall-concourse/defaults.dhall
  3. let Prelude = ../lib/prelude/package.dhall
  4. let JSON = ../lib/prelude/json-type.dhall
  5. let JSONHelpers = ../lib/prelude/json-helpers.dhall
  6. in λ(name : Text)
  7. → λ(repository : Text)
  8. → λ(tag : Text)
  9. → Concourse.ResourceType.Custom
  10. ( Defaults.CustomResourceType
  11. ⫽ { name = name
  12. , type = "docker-image"
  13. , source =
  14. Some
  15. [ JSONHelpers.keyValue
  16. JSON
  17. "repository"
  18. (JSONHelpers.string repository)
  19. , JSONHelpers.keyValue JSON "tag" (JSONHelpers.string tag)
  20. ]
  21. }
  22. )
  23. : Concourse.ResourceType