From 223218db1d878bdb0e1319f11933bbab644f81d6 Mon Sep 17 00:00:00 2001 From: Jakub Turski Date: Mon, 11 Nov 2024 23:33:40 +0000 Subject: [PATCH] build: save current base image's sha as an artifact There's a race condition here, but I can take of it later. --- .github/workflows/build.yaml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 84b4ddf..dbd24d6 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,11 +1,5 @@ name: bluebuild on: - registry_package: - types: [updated] - packages: - - "ghcr.io/ublue-os/aurora-dx" - filters: - tag: "stable" push: branches: - main @@ -29,6 +23,16 @@ jobs: recipe: - recipe.yml steps: + - name: Get SHA of the latest base image + id: registry + run: | + skopeo inspect --raw docker://ghcr.io/ublue-os/aurora-dx:stable | jq '.config.digest' > latest_base_image_sha + - name: Save SHA of the current base image as an artifact + uses: actions/upload-artifact@v4 + with: + path: latest_base_image_sha + name: latest_base_image_sha + retention-days: 90 - name: Build Custom Image uses: blue-build/github-action@v1.6 with: