Skip to content

Commit

Permalink
Use separate cache for kas-uefi-sb + build kas-uefi-sb in weekly work…
Browse files Browse the repository at this point in the history
…flow

Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
  • Loading branch information
PLangowski committed Feb 10, 2025
1 parent 674aa80 commit 853d3c5
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
41 changes: 40 additions & 1 deletion .github/workflows/weekly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ jobs:
with:
cacheless: true
kas-path: meta-dts/kas.yml

deploy-cache:
name: Deploy cache on cache.dasharo.com
needs: build
Expand Down Expand Up @@ -49,3 +48,43 @@ jobs:
run: |
rm -rf ~/.ssh/dts-ci-key
rm -rf build
build-uefi-sb:
uses: ./.github/workflows/build.yml
needs: cleanup
with:
cacheless: true
kas-path: meta-dts/kas-uefi-sb.yml
deploy-cache-uefi-sb:
name: Deploy cache on cache.dasharo.com
needs: build-uefi-sb
runs-on:
labels: dts-builder
steps:
- name: Prepare SSH key
shell: bash
env:
SSH_KEY: ${{secrets.SSH_KEY}}
run: |
echo -e ${SSH_KEY} > ~/.ssh/dts-ci-key
chmod 600 ~/.ssh/dts-ci-key
- name: Send sstate-cache folder to cache.dasharo.com
shell: bash
run: |
ssh -i ~/.ssh/dts-ci-key builder@10.1.40.2 "mkdir -p cache/yocto/dts/dts-uefi-sb"
rsync -P -e "ssh -i ~/.ssh/dts-ci-key" -rlptD --delete build/sstate-cache builder@10.1.40.2:cache/yocto/dts/dts-uefi-sb
- name: Send downloads folder to cache.dasharo.com
shell: bash
run: |
rsync -P -e "ssh -i ~/.ssh/dts-ci-key" -rlptD --delete build/downloads builder@10.1.40.2:cache/yocto/dts/dts-uefi-sb
cleanup-uefi-sb:
name: Cleanup
if: always()
needs: deploy-cache-uefi-sb
runs-on:
labels: dts-builder
steps:
- name: Cleanup after deployment
shell: bash
run: |
rm -rf ~/.ssh/dts-ci-key
rm -rf build
4 changes: 4 additions & 0 deletions kas-uefi-sb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ repos:
meta-openembedded:
layers:
meta-perl:

local_conf_header:
yocto-cache-uefi-sb: |
PROJECT_NAME = "yocto/dts/dts-uefi-sb"

0 comments on commit 853d3c5

Please sign in to comment.