From 2da0534461263eb30cfebe49f0505e90456134ae Mon Sep 17 00:00:00 2001 From: Petu Eusebiu Date: Tue, 21 Nov 2023 17:20:16 +0200 Subject: [PATCH] ci: stacker publish recursively Signed-off-by: Petu Eusebiu --- .github/workflows/build.yml | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index aeef3f1..5f3a3e9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,9 +7,6 @@ jobs: name: build runs-on: self-hosted steps: - env: - USERNAME: ${{ secrets.ZOTHUB_USERNAME }} - PASSWORD: ${{ secrets.ZOTHUB_PASSWORD }} - name: Set up environment run: | mkdir ~/bin @@ -74,13 +71,19 @@ jobs: run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV - name: publish provision and install layer if: startsWith(github.ref, 'refs/tags/') - run: | - make publish - env: - ZOT_VERSION=2.0.0-rc5 - ROOTFS_VERSION=v0.0.17.231018 - TOPDIR=${{ env.TOPDIR }} - URL=docker://zothub.io/machine/bootkit + uses: project-stacker/stacker-build-push-action@main + with: + version: v1.0.0-rc8 + dir: 'layers' + build-args: | + ZOT_VERSION=2.0.0-rc5 + ROOTFS_VERSION=v0.0.17.231018 + TOPDIR=${{ env.TOPDIR }} + url: docker://zothub.io/machine/bootkit + layer-type: squashfs + tags: ${{ env.RELEASE_VERSION }} + username: ${{ secrets.ZOTHUB_USERNAME }} + password: ${{ secrets.ZOTHUB_PASSWORD }} build_arm64: runs-on: ubuntu-latest