Skip to content

Commit 20e2277

Browse files
committed
cicero/cd: put deployment URL in output fact
1 parent 42471a4 commit 20e2277

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

nix/cloud/actions.nix

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,18 @@
5454
output: {
5555
success: deployed: true
5656
failure: deployed: false
57-
[string]: revision: cfg._revision
57+
[string]: {
58+
revision: cfg._revision
59+
60+
_sub: string
61+
if cfg._branch == cfg._default_branch {
62+
_sub: ""
63+
}
64+
if cfg._branch != cfg._default_branch {
65+
_sub: "\(cfg._branch)."
66+
}
67+
url: "https://\(_sub)cicero.ci.iog.io"
68+
}
5869
}
5970
'';
6071

0 commit comments

Comments
 (0)