Skip to content

Commit f58330b

Browse files
authored
Merge pull request #177 from Dasharo/develop
Release v2.0.0
2 parents 64992b4 + e1fe43b commit f58330b

File tree

100 files changed

+1257
-5330
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+1257
-5330
lines changed

.codespellrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[codespell]
2+
exclude-file = .codespellx
3+
ignore-words-list = crate, hsi

.codespellx

Whitespace-only changes.

.conform.yaml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
policies:
3+
- type: commit
4+
spec:
5+
header:
6+
length: 80
7+
imperative: false
8+
invalidLastCharacters: .
9+
body:
10+
required: false
11+
dco: true
12+
gpg:
13+
required: true
14+
spellcheck:
15+
locale: US
16+
maximumOfOneCommit: false

.github/workflows/ci.yml

+13-15
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
name: CI on push tag
1+
---
2+
name: CI on push release tag
23
on:
34
push:
45
tags:
@@ -40,7 +41,7 @@ jobs:
4041
echo "At least one build attempt succeeded."
4142
fi
4243
deploy-images:
43-
name: Deploy DTS artifacts on boot.dasharo.com
44+
name: Deploy DTS artifacts on boot.dasharo.com and GitHub Release
4445
if: ${{ always() && contains(join(needs.*.result, ','), 'success') }}
4546
needs: build
4647
runs-on:
@@ -50,18 +51,17 @@ jobs:
5051
shell: bash
5152
env:
5253
SSH_KEY: ${{secrets.SSH_KEY}}
53-
SSH_KEY_GITEA: ${{secrets.SSH_KEY_GITEA}}
54+
SSH_KEY_CI_CD: ${{secrets.SSH_KEY_CI_CD}}
5455
run: |
5556
echo -e ${SSH_KEY} > ~/.ssh/dts-ci-key
5657
chmod 600 ~/.ssh/dts-ci-key
57-
echo -e ${SSH_KEY_GITEA} > ~/.ssh/gitea-key
58-
chmod 600 ~/.ssh/gitea-key
59-
cp ~/.ssh/config ~/.ssh/config-old
58+
echo -e ${SSH_KEY_CI_CD} > ~/.ssh/gitea_dts_release_cicd
59+
chmod 600 ~/.ssh/gitea_dts_release_cicd
6060
echo -e "\n
6161
Host git.3mdeb.com\n
6262
HostName git.3mdeb.com\n
63-
IdentityFile ~/.ssh/gitea-key\n
64-
IdentitiesOnly yes" >> ~/.ssh/config
63+
IdentityFile ~/.ssh/gitea_dts_release_cicd\n
64+
IdentitiesOnly yes" > ~/.ssh/config_deploy
6565
- name: Get DTS version
6666
id: dts-ver
6767
shell: bash
@@ -126,18 +126,18 @@ jobs:
126126
run: |
127127
./meta-dts/scripts/generate-ipxe-menu.sh ${{ env.DTS_VER }}
128128
scp -i ~/.ssh/dts-ci-key dts.ipxe builder@10.1.40.2:boot/dts/
129-
- name: Trigger signing
129+
- name: Trigger signing and deploy to GitHub Release tab
130130
shell: bash
131131
run: |
132132
DTS_VER="${{ env.DTS_VER }}"
133-
git clone ssh://git@git.3mdeb.com:2222/3mdeb/dts-release-cicd-pipeline.git
133+
GIT_SSH_COMMAND='ssh -F ~/.ssh/config_deploy' git clone ssh://git@git.3mdeb.com:2222/3mdeb/dts-release-cicd-pipeline.git
134134
cd dts-release-cicd-pipeline
135135
echo ${DTS_VER} > LATEST_RELEASE
136136
git add LATEST_RELEASE
137137
git commit -m "Signing release ${DTS_VER}"
138-
git push origin main
138+
GIT_SSH_COMMAND='ssh -F ~/.ssh/config_deploy' git push origin main
139139
git tag ${DTS_VER}
140-
git push origin ${DTS_VER}
140+
GIT_SSH_COMMAND='ssh -F ~/.ssh/config_deploy' git push origin ${DTS_VER}
141141
cd -
142142
cleanup:
143143
name: Cleanup
@@ -151,7 +151,5 @@ jobs:
151151
run: |
152152
rm -rf ~/.ssh/dts-ci-key
153153
rm -rf dts-release-cicd-pipeline
154-
rm -f ~/.ssh/gitea-key
154+
rm -f ~/.ssh/gitea_dts_release_cicd
155155
rm -rf build
156-
rm -f ~/.ssh/config
157-
mv ~/.ssh/config-old ~/.ssh/config

.github/workflows/develop.yml

+12-14
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
name: CI on push to develop
1+
---
2+
name: CI on push develop tag
23
on:
34
push:
45
tags:
@@ -39,7 +40,7 @@ jobs:
3940
echo "At least one build attempt succeeded."
4041
fi
4142
deploy-images:
42-
name: Deploy DTS artifacts on GitHub Releases tab
43+
name: Deploy DTS artifacts on boot.dasharo.com
4344
if: ${{ always() && contains(join(needs.*.result, ','), 'success') }}
4445
needs: build
4546
runs-on:
@@ -49,18 +50,17 @@ jobs:
4950
shell: bash
5051
env:
5152
SSH_KEY: ${{secrets.SSH_KEY}}
52-
SSH_KEY_GITEA: ${{secrets.SSH_KEY_GITEA}}
53+
SSH_KEY_CI_CD: ${{secrets.SSH_KEY_CI_CD}}
5354
run: |
5455
echo -e ${SSH_KEY} > ~/.ssh/dts-ci-key
5556
chmod 600 ~/.ssh/dts-ci-key
56-
echo -e ${SSH_KEY_GITEA} > ~/.ssh/gitea-key
57-
chmod 600 ~/.ssh/gitea-key
58-
cp ~/.ssh/config ~/.ssh/config-old
57+
echo -e ${SSH_KEY_CI_CD} > ~/.ssh/gitea_dts_release_cicd
58+
chmod 600 ~/.ssh/gitea_dts_release_cicd
5959
echo -e "\n
6060
Host git.3mdeb.com\n
6161
HostName git.3mdeb.com\n
62-
IdentityFile ~/.ssh/gitea-key\n
63-
IdentitiesOnly yes" >> ~/.ssh/config
62+
IdentityFile ~/.ssh/gitea_dts_release_cicd\n
63+
IdentitiesOnly yes" > ~/.ssh/config_deploy
6464
- name: Get DTS version
6565
id: dts-ver
6666
shell: bash
@@ -121,14 +121,14 @@ jobs:
121121
shell: bash
122122
run: |
123123
DTS_VER="${{ env.DTS_VER }}"
124-
git clone ssh://git@git.3mdeb.com:2222/3mdeb/dts-release-cicd-pipeline.git
124+
GIT_SSH_COMMAND='ssh -F ~/.ssh/config_deploy' git clone ssh://git@git.3mdeb.com:2222/3mdeb/dts-release-cicd-pipeline.git
125125
cd dts-release-cicd-pipeline
126126
echo ${DTS_VER} > LATEST_RELEASE
127127
git add LATEST_RELEASE
128128
git commit -m "Signing release ${DTS_VER}"
129-
git push origin main
129+
GIT_SSH_COMMAND='ssh -F ~/.ssh/config_deploy' git push origin main
130130
git tag ${DTS_VER}
131-
git push origin ${DTS_VER}
131+
GIT_SSH_COMMAND='ssh -F ~/.ssh/config_deploy' git push origin ${DTS_VER}
132132
cd -
133133
cleanup:
134134
name: Cleanup
@@ -142,7 +142,5 @@ jobs:
142142
run: |
143143
rm -rf ~/.ssh/dts-ci-key
144144
rm -rf dts-release-cicd-pipeline
145-
rm -f ~/.ssh/gitea-key
145+
rm -f ~/.ssh/gitea_dts_release_cicd
146146
rm -rf build
147-
rm -f ~/.ssh/config
148-
mv ~/.ssh/config-old ~/.ssh/config

.github/workflows/weekly.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: Weekly clean & rebuild
23
on:
34
schedule:

.markdownlint.yaml

+196
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,196 @@
1+
---
2+
# Documentation:
3+
# https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md
4+
5+
# Default state for all rules
6+
default: false
7+
8+
# MD001/heading-increment/header-increment - Heading levels should only increment by one level at a time
9+
MD001: true
10+
11+
# MD002/first-heading-h1/first-header-h1 - First heading should be a top-level heading
12+
MD002:
13+
# Heading level
14+
level: 1
15+
16+
# MD003/heading-style/header-style - Heading style
17+
18+
MD003:
19+
# Heading style
20+
# # ATX style H1
21+
style: "atx"
22+
23+
# MD004/ul-style - Unordered list style
24+
MD004:
25+
# List style
26+
style: "sublist"
27+
28+
# MD005/list-indent - Inconsistent indentation for list items at the same level
29+
MD005: true
30+
31+
# MD006/ul-start-left - Consider starting bulleted lists at the beginning of the line
32+
MD006: true
33+
34+
# MD007/ul-indent - Unordered list indentation
35+
MD007:
36+
# Spaces for indent
37+
indent: 4
38+
# Whether to indent the first level of the list
39+
start_indented: false
40+
41+
# MD009/no-trailing-spaces - Trailing spaces
42+
MD009:
43+
# Spaces for line break
44+
br_spaces: 2
45+
# Allow spaces for empty lines in list items
46+
list_item_empty_lines: false
47+
# Include unnecessary breaks
48+
strict: false
49+
50+
# MD010/no-hard-tabs - Hard tabs
51+
MD010:
52+
# Include code blocks
53+
code_blocks: false
54+
# Number of spaces for each hard tab
55+
spaces_per_tab: 1
56+
57+
# MD011/no-reversed-links - Reversed link syntax
58+
MD011: true
59+
60+
# MD012/no-multiple-blanks - Multiple consecutive blank lines
61+
MD012:
62+
# Consecutive blank lines
63+
maximum: 1
64+
# MD013/line-length - Line length
65+
#
66+
MD013:
67+
# Number of characters
68+
line_length: 80
69+
# Number of characters for headings
70+
heading_line_length: 80
71+
# Number of characters for code blocks
72+
code_block_line_length: 160
73+
# Include code blocks
74+
code_blocks: false
75+
# Include tables
76+
tables: false
77+
# Include headings
78+
headings: true
79+
# Strict length checking (e.g. allow for longer URLs)
80+
strict: false
81+
# Stern length checking
82+
stern: false
83+
84+
# MD014/commands-show-output - Dollar signs used before commands without showing output
85+
# TODO: set false for now but we should consider enabling it
86+
# https://cirosantilli.com/markdown-style-guide#dollar-signs-in-shell-code
87+
MD014: false
88+
89+
# MD018/no-missing-space-atx - No space after hash on atx style heading
90+
MD018: true
91+
92+
# MD019/no-multiple-space-atx - Multiple spaces after hash on atx style heading
93+
MD019: true
94+
95+
# MD022/blanks-around-headings/blanks-around-headers - Headings should be surrounded by blank lines
96+
MD022:
97+
# Blank lines above heading
98+
lines_above: 1
99+
# Blank lines below heading
100+
lines_below: 1
101+
102+
# MD023/heading-start-left/header-start-left - Headings must start at the beginning of the line
103+
MD023: true
104+
105+
# MD025/single-title/single-h1 - Multiple top-level headings in the same document
106+
# TODO: consider enabling it
107+
108+
# MD026/no-trailing-punctuation - Trailing punctuation in heading
109+
MD026:
110+
# Punctuation characters
111+
punctuation: ".,;:!。,;:!"
112+
113+
# MD027/no-multiple-space-blockquote - Multiple spaces after blockquote symbol
114+
MD027: true
115+
116+
# MD028/no-blanks-blockquote - Blank line inside blockquote
117+
MD028: true
118+
119+
# MD029/ol-prefix - Ordered list item prefix
120+
MD029:
121+
# List style
122+
style: "one_or_ordered"
123+
124+
# MD030/list-marker-space - Spaces after list markers
125+
MD030:
126+
# Spaces for single-line unordered list items
127+
ul_single: 1
128+
# Spaces for single-line ordered list items
129+
ol_single: 1
130+
# Spaces for multi-line unordered list items
131+
ul_multi: 1
132+
# Spaces for multi-line ordered list items
133+
ol_multi: 1
134+
135+
# MD031/blanks-around-fences - Fenced code blocks should be surrounded by blank lines
136+
MD031:
137+
# Include list items
138+
list_items: true
139+
140+
# MD033/no-inline-html - Inline HTML
141+
MD033:
142+
# Allowed elements
143+
allowed_elements: ["br", "center", "img", "script", "form", "input"]
144+
145+
# MD034/no-bare-urls - Bare URL used
146+
MD034: true
147+
148+
# MD035/hr-style - Horizontal rule style
149+
MD035:
150+
# Horizontal rule style
151+
style: "---"
152+
153+
# MD037/no-space-in-emphasis - Spaces inside emphasis markers
154+
MD037: true
155+
156+
# MD038/no-space-in-code - Spaces inside code span elements
157+
MD038: true
158+
159+
# MD039/no-space-in-links - Spaces inside link text
160+
MD039: true
161+
162+
# MD040/fenced-code-language - Fenced code blocks should have a language specified
163+
MD040: true
164+
165+
# MD041/first-line-heading/first-line-h1 - First line in a file should be a top-level heading
166+
MD041:
167+
# Heading level
168+
level: 1
169+
# RegExp for matching title in front matter
170+
front_matter_title: "^\\s*title\\s*[:=]"
171+
172+
# MD042/no-empty-links - No empty links
173+
MD042: true
174+
175+
# MD046/code-block-style - Code block style
176+
MD046:
177+
# Block style
178+
style: "fenced"
179+
180+
# MD047/single-trailing-newline - Files should end with a single newline character
181+
MD047: true
182+
183+
# MD048/code-fence-style - Code fence style
184+
MD048:
185+
# Code fence style
186+
style: "backtick"
187+
188+
# MD049/emphasis-style - Emphasis style should be consistent
189+
MD049:
190+
# Emphasis style should be consistent
191+
style: "underscore"
192+
193+
# MD050/strong-style - Strong style should be consistent
194+
MD050:
195+
# Strong style should be consistent
196+
style: "asterisk"

0 commit comments

Comments
 (0)