-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: push Containerfile in release branch
- Loading branch information
1 parent
fd8c11a
commit 534823b
Showing
1 changed file
with
18 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,18 +22,13 @@ jobs: | |
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Cache APT packages | ||
uses: actions/cache@v4 | ||
with: | ||
path: /var/cache/apt/archives | ||
key: ${{ runner.os }}-apt | ||
restore-keys: | | ||
${{ runner.os }}-apt | ||
- uses: awalsh128/cache-apt-pkgs-action@latest | ||
with: | ||
packages: debootstrap podman | ||
version: 1.0 | ||
|
||
- name: Rootfs | ||
run: | | ||
sudo apt install -y debootstrap podman | ||
cd rootfs | ||
sudo sh build.sh | ||
cd .. | ||
|
@@ -46,6 +41,12 @@ jobs: | |
name: Containerfile | ||
path: Containerfile | ||
|
||
- name: Save zst | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: vanilla-pico.tar.zst | ||
path: rootfs/vanilla-pico.tar.zst | ||
|
||
commit: | ||
|
||
runs-on: ubuntu-latest | ||
|
@@ -62,10 +63,17 @@ jobs: | |
with: | ||
name: Containerfile | ||
|
||
- name: Download zst | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: vanilla-pico.tar.zst | ||
|
||
- name: Commit Containerfile | ||
run: | | ||
mkdir rootfs | ||
mv vanilla-pico.tar.zst rootfs/vanilla-pico.tar.zst | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git add Containerfile | ||
git add . | ||
git commit -m "release: ${GITHUB_REF#refs/tags/}" | ||
git push |