hammerkit
  • About
  • Installation
  • Getting started
  • Build file
    • Environment Variables
    • References
    • Includes
  • Task
    • Dependencies
    • Needs
    • Caching
    • Container
    • Watching
    • Extending
  • Service
    • Container
    • Kubernetes
  • Labels
  • CLI
    • Init
    • ls
    • Execute
    • Store / Restore
    • Clean
    • Validate
    • Help
  • External Links
    • Docker Hub
    • Homebrew Repository
  • Release Blog
    • Release 1.4.0
    • Release 1.5.0
  • Contribution
    • Roadmap
    • Publishing
Powered by GitBook
On this page

Was this helpful?

  1. Build file

References

References allow the usage of other tasks defined in other build files. They can be used to split up different tasks into separate files.

PreviousEnvironment VariablesNextIncludes

Last updated 2 years ago

Was this helpful?

Each build file can have a reference map. The reference points to other build file containing more tasks. References can be used directly from the or in .

.hammerkit.yaml
references:
  foo: project/foo
project/foo/.hammerkit.yaml
tasks:
  example:
    cmds:
      - echo "foo bar"

The task name example in the referenced build file will be prepended with the reference name foo and can be used as foo:example

hammerkit foo:example
cli
task dependencies