pipeline.tri (556B)
1 !import workflow as W 2 !export pipeline 3 !export requireApproval 4 !export explain 5 !export execute 6 7 -- The payload is an explicit definition input, reflected in the plan identity. 8 -- These ordinary library calls build an inspectable pipeline value. 9 pipeline text = 10 [(W.writeArtifact "build" "candidate.txt" text) 11 (W.checkArtifact "test" "candidate.txt" text) 12 (W.publishArtifact "deploy" "candidate.txt" "release.txt")] 13 14 requireApproval target stages = W.requireApproval target stages 15 explain stages = W.explain stages 16 execute stages = W.execute stages