From 534823bc705bf9ba336983c16adbbc952932883c Mon Sep 17 00:00:00 2001 From: Pietro di Caprio Date: Sun, 18 Feb 2024 22:58:38 +0100 Subject: [PATCH] ci: push Containerfile in release branch --- .github/workflows/release.yml | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a4b3b64..14e6bc2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 "action@github.com" git config --local user.name "GitHub Action" - git add Containerfile + git add . git commit -m "release: ${GITHUB_REF#refs/tags/}" git push