-
Notifications
You must be signed in to change notification settings - Fork 40
/
code_commit_push.d2
executable file
·89 lines (84 loc) · 1.76 KB
/
code_commit_push.d2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#!/usr/bin/env d2 --animate-interval 1000
#
# Author: Hari Sekhon
# Date: 2023-05-03 21:57:14 +0100 (Wed, 03 May 2023)
#
# vim:ts=2:sts=2:sw=2:et:filetype=d2
#
# https://github.com/HariSekhon/Diagrams-as-Code
#
# License: see accompanying Hari Sekhon LICENSE file
#
# If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback to help steer this or other code I publish
#
# https://www.linkedin.com/in/HariSekhon
#
direction: right
classes: {
common: {
shape: image
style.opacity: 0
}
}
code: Code {
class: common
icon: https://cdn-icons-png.flaticon.com/512/6463/6463383.png
}
git: Git {
class: common
icon: https://icons.terrastruct.com/dev%2Fgit.svg
}
github: GitHub {
class: common
icon: https://icons.terrastruct.com/dev%2Fgithub.svg
# icon: https://icons.terrastruct.com/social%2F039-github.svg
}
cicd: CI/CD {
class: common
icon: https://diagrams.mingrammer.com/img/resources/onprem/ci/github-actions.png
}
boom: Boom {
class: common
icon: https://www.freeiconspng.com/download/9158
}
# wink: {
# icon: http://s3.amazonaws.com/pix.iemoji.com/images/emoji/apple/ios-12/256/winking-face.png
# class: common
# style: {
# font-color: white
# }
# }
code -> git: commit {class: common}
git -> github: push {class: common}
github -> cicd: trigger {class: common}
cicd -> boom: action {class: common}
steps: {
1: {
code.style.opacity: 1
}
2: {
(code -> git)[0].style.opacity: 1
}
3: {
git.style.opacity: 1
}
4: {
(git -> github)[0].style.opacity: 1
}
5: {
github.style.opacity: 1
}
6: {
(github -> cicd)[0].style.opacity: 1
}
7: {
cicd.style.opacity: 1
}
8: {
(cicd -> boom)[0].style.opacity: 1
}
9: {
boom.style.opacity: 1
}
§
}