Skip to content

Commit

Permalink
ci: push Containerfile in release branch
Browse files Browse the repository at this point in the history
  • Loading branch information
pietrodicaprio authored Feb 18, 2024
1 parent fd8c11a commit 534823b
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ..
Expand All @@ -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
Expand All @@ -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

0 comments on commit 534823b

Please sign in to comment.