Azure / Azure/azure-dev

[layers v2] Decide project-wide hooks vs. layer-specific hooks

Open
#9,766 0 comments 0 reactions 1 assignee Claimed by @richardpark-msft View on GitHub
area/hooks area/layered-provisioning
Dominant language
Go
Stars
569
Forks
364
Avg merge
2d 19h
Merged PRs (30d)
136

Description

Part of #9765.

Decide on and implement support for layer-specific hooks.

This is just extending the abstraction of project-level hooks, so that layers can *also* have their own scoped hooks. There was some discussion about this, and @tg-msft + @vhvb1989 can provide some more details here.

- Today, layer hooks only support `preprovision`/`postprovision` — a holdover from layers being infra-only. Project hooks cover the full lifecycle, service hooks cover build/package/publish/deploy/restore.
- Without this, micro-templates won't have a way to have hooks apply *only* to their layer — project level is too broad.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.