chore: bump vib version; feat: get base image from recipe for verify image step
Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
This commit is contained in:
parent
73b22ce6bd
commit
07c43b87e9
2 changed files with 21 additions and 6 deletions
24
.github/workflows/vib-build.yml
vendored
24
.github/workflows/vib-build.yml
vendored
|
|
@ -17,11 +17,25 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
verify_image:
|
verify_image:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: sudo apt-get install -y libfyaml-utils
|
||||||
|
|
||||||
|
- name: Read base image name from recipe
|
||||||
|
id: read_base_recipe
|
||||||
|
run: |
|
||||||
|
BASE_IMAGE="$(fy-filter -f recipe.yml /stages/-1/base)"
|
||||||
|
echo The base image is $BASE_IMAGE
|
||||||
|
if [ -z $BASE_IMAGE ]; then exit 1; fi
|
||||||
|
echo "base_image=$BASE_IMAGE" >> "$GITHUB_OUTPUT"
|
||||||
|
echo "BASE_IMAGE=$BASE_IMAGE" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
- name: Verify Base Image Integrity
|
- name: Verify Base Image Integrity
|
||||||
run:
|
run: |
|
||||||
gh attestation verify oci://ghcr.io/vanilla-os/desktop:main --owner Vanilla-OS
|
gh attestation verify oci://ghcr.io/${{ env.BASE_IMAGE }} --owner Vanilla-OS
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
|
|
||||||
|
|
@ -112,10 +126,10 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: vanilla-os/vib-gh-action@v0.7.2
|
- uses: vanilla-os/vib-gh-action@v0.7.4
|
||||||
with:
|
with:
|
||||||
recipe: 'recipe.yml'
|
recipe: 'recipe.yml'
|
||||||
plugins: 'Vanilla-OS/vib-fsguard:v1.5.1'
|
plugins: 'Vanilla-OS/vib-fsguard:v1.5.3'
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,8 @@ stages:
|
||||||
|
|
||||||
# Commands to run first before building the modules
|
# Commands to run first before building the modules
|
||||||
runs:
|
runs:
|
||||||
- echo 'APT::Install-Recommends "1";' > /etc/apt/apt.conf.d/01norecommends
|
commands:
|
||||||
|
- echo 'APT::Install-Recommends "1";' > /etc/apt/apt.conf.d/01norecommends
|
||||||
|
|
||||||
modules:
|
modules:
|
||||||
- name: init-setup
|
- name: init-setup
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue