summaryrefslogtreecommitdiff
path: root/build/phases.go
diff options
context:
space:
mode:
Diffstat (limited to 'build/phases.go')
-rw-r--r--build/phases.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/build/phases.go b/build/phases.go
index 3480927..a656727 100644
--- a/build/phases.go
+++ b/build/phases.go
@@ -22,3 +22,15 @@ const (
type PhaseCompileable interface {
InstructionsForPhase(phase Phase) []Instruction
}
+
+// Phases returns all build phases in the order to be compiled.
+//
+func Phases() []Phase {
+ return []Phase{
+ PhasePrivileged,
+ PhasePrivilegeDropped,
+ PhasePreInstall,
+ PhaseInstall,
+ PhasePostInstall,
+ }
+}