Skip to content

Commit

Permalink
build: save current base image's sha as an artifact
Browse files Browse the repository at this point in the history
There's a race condition here, but I can take of it later.
  • Loading branch information
yacoob committed Nov 11, 2024
1 parent 70e129c commit 223218d
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
name: bluebuild
on:
registry_package:
types: [updated]
packages:
- "ghcr.io/ublue-os/aurora-dx"
filters:
tag: "stable"
push:
branches:
- main
Expand All @@ -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:
Expand Down

0 comments on commit 223218d

Please sign in to comment.