Skip to content

Commit 289298c

Browse files
committed
.github/workflows: Build DTS from kas-uefi-sb.yml
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
1 parent 409500f commit 289298c

File tree

3 files changed

+37
-4
lines changed

3 files changed

+37
-4
lines changed

.github/workflows/build.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
cacheless:
77
type: boolean
88
required: true
9+
kas-path:
10+
type: string
11+
required: true
912

1013
jobs:
1114
build:
@@ -22,13 +25,13 @@ jobs:
2225
if: ${{ inputs.cacheless }}
2326
shell: bash
2427
run: |
25-
sed -i '/cache.yml/d' meta-dts/kas.yml
28+
sed -i '/cache.yml/d' "${{ inputs.kas-path }}"
2629
- name: Build DTS image
2730
shell: bash
2831
id: build_image
2932
run: |
3033
for attempt in {1..5}; do
31-
if kas-container build meta-dts/kas.yml; then
34+
if kas-container build "${{ inputs.kas-path }}"; then
3235
echo "Build command succeeded on attempt $attempt"
3336
break
3437
else

.github/workflows/ci.yml

+16-1
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,25 @@ concurrency:
1010
group: ${{ github.workflow }}
1111

1212
jobs:
13+
build-uefi-sb:
14+
uses: ./.github/workflows/build.yml
15+
with:
16+
cacheless: false
17+
kas-path: meta-dts/kas-uefi-sb.yml
18+
move-build-artifacts:
19+
needs: build-uefi-sb
20+
runs-on:
21+
labels: dts-builder
22+
steps:
23+
- name: Move UEFI SB build artifacts
24+
shell: bash
25+
run: |
26+
mv build build-sb
1327
build:
1428
uses: ./.github/workflows/build.yml
1529
with:
1630
cacheless: false
31+
kas-path: meta-dts/kas.yml
1732
deploy-images:
1833
name: Deploy DTS artifacts on boot.dasharo.com and GitHub Release
1934
needs: build
@@ -134,4 +149,4 @@ jobs:
134149
rm -rf ~/.ssh/dts-ci-key
135150
rm -rf dts-release-cicd-pipeline
136151
rm -f ~/.ssh/gitea_dts_release_cicd
137-
rm -rf build meta-dts
152+
rm -rf build build-sb meta-dts

.github/workflows/develop.yml

+16-1
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,25 @@ concurrency:
99
group: ${{ github.workflow }}
1010

1111
jobs:
12+
build-uefi-sb:
13+
uses: ./.github/workflows/build.yml
14+
with:
15+
cacheless: false
16+
kas-path: meta-dts/kas-uefi-sb.yml
17+
move-build-artifacts:
18+
needs: build-uefi-sb
19+
runs-on:
20+
labels: dts-builder
21+
steps:
22+
- name: Move UEFI SB build artifacts
23+
shell: bash
24+
run: |
25+
mv build build-sb
1226
build:
1327
uses: ./.github/workflows/build.yml
1428
with:
1529
cacheless: false
30+
kas-path: meta-dts/kas.yml
1631
deploy-images:
1732
name: Deploy DTS artifacts on boot.dasharo.com
1833
needs: build
@@ -125,4 +140,4 @@ jobs:
125140
rm -rf ~/.ssh/dts-ci-key
126141
rm -rf dts-release-cicd-pipeline
127142
rm -f ~/.ssh/gitea_dts_release_cicd
128-
rm -rf build meta-dts
143+
rm -rf build build-sb meta-dts

0 commit comments

Comments
 (0)