Skip to content

Commit

Permalink
try workflow build in container
Browse files Browse the repository at this point in the history
  • Loading branch information
asac committed Aug 7, 2024
1 parent 25b83d9 commit 47d3e88
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/configs/shared-vols.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
_source_dir: .
header:
version: 16
local_conf_header:
__voldirs: |-
SSTATE_DIR="/shared/sstate"
DL_DIR="/shared/dldir"
6 changes: 5 additions & 1 deletion .github/workflows/onpush.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@ jobs:
runs-on: ["self-hosted"]
container:
image: ghcr.io/pantacor/kas/kas:next-v1
volumes:
- shared:/shared
steps:
- name: chown
run: sudo chown -R builder:builder .
- name: shared
run: sudo mkdir /shared/sstate && sudo chown builder:build /shared/sstate && sudo mkdir /shared/dldir && sudo chown builder:builder /shared/dldir
- name: Build Kas
run: kas build .github/configs/sunxi/sunxi-orange-pi-3lts-remix-scarthgap.yaml
run: kas build .github/configs/sunxi/sunxi-orange-pi-3lts-remix-scarthgap.yaml:.github/configs/shared-vols.yaml

0 comments on commit 47d3e88

Please sign in to comment.