Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
Update build workflow and modules
Browse files Browse the repository at this point in the history
  • Loading branch information
c0deplayer committed Jan 24, 2024
2 parents 9e222fa + 535ed93 commit 63e913b
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 68 deletions.
45 changes: 38 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,25 +34,52 @@ jobs:
- silverflow-nvidia-39.yml

steps:
- name: Maximize build space
uses: ublue-os/remove-unwanted-software@v6

# Checkout push-to-registry action GitHub repository
- name: Checkout Push to Registry action
uses: actions/checkout@v4

# Confirm that cosign.pub matches SIGNING_SECRET
- uses: sigstore/[email protected]
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/live'

- name: Check SIGNING_SECRET matches cosign.pub
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/live'
env:
COSIGN_EXPERIMENTAL: false
COSIGN_PASSWORD: ""
COSIGN_PRIVATE_KEY: ${{ secrets.SIGNING_SECRET }}
shell: bash
run: |
echo "Checking for difference between public key from SIGNING_SECRET and cosign.pub"
delta=$(diff -u <(cosign public-key --key env://COSIGN_PRIVATE_KEY) cosign.pub)
if [ -z "$delta" ]; then
echo "cosign.pub matches SIGNING_SECRET"
else
echo "cosign.pub does not match SIGNING_SECRET"
echo "$delta"
exit 1
fi
- name: Add yq (for reading recipe.yml)
uses: mikefarah/[email protected].4
uses: mikefarah/[email protected].5

- name: Gather image data from recipe
run: |
echo "IMAGE_NAME=$(yq '.name' ./config/${{ matrix.recipe }})" >> $GITHUB_ENV
echo "IMAGE_DESCRIPTION=$(yq '.description' ./config/${{ matrix.recipe }})" >> $GITHUB_ENV
echo "IMAGE_MAJOR_VERSION=$(yq '.image-version' ./config/${{ matrix.recipe }})" >> $GITHUB_ENV
echo "BASE_IMAGE_URL=$(yq '.base-image' ./config/${{ matrix.recipe }})" >> $GITHUB_ENV
BASE_IMAGE=$(yq '.base-image' ./config/${{ matrix.recipe }})
echo "BASE_IMAGE_URL=$BASE_IMAGE" >> $GITHUB_ENV
echo "BASE_IMAGE_NAME=$(echo $BASE_IMAGE | sed 's/.*\/.*\///')" >> $GITHUB_ENV
echo "IS_LATEST_VERSION=$(yq '.is_latest_version' ./config/${{ matrix.recipe }})" >> $GITHUB_ENV
echo "IS_STABLE_VERSION=$(yq '.is_stable_version' ./config/${{ matrix.recipe }})" >> $GITHUB_ENV
- name: Verify base image
uses: EyeCantCU/cosign-action/[email protected]
with:
containers: ${{ env.BASE_IMAGE_NAME }}:${{ env.IMAGE_MAJOR_VERSION }}

- name: Get current version
id: labels
run: |
Expand Down Expand Up @@ -128,6 +155,13 @@ jobs:
with:
string: ${{ env.IMAGE_NAME }}

- name: Maximize build space
uses: AdityaGarg8/remove-unwanted-software@v2
with:
remove-dotnet: 'true'
remove-android: 'true'
remove-haskell: 'true'

# Build image using Buildah action
- name: Build Image
id: build_image
Expand Down Expand Up @@ -173,9 +207,6 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

# Sign container
- uses: sigstore/[email protected]
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/live'

- name: Sign container image
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/live'
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-iso.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Generate ISO
uses: ublue-os/isogenerator@v2.2.0
uses: ublue-os/isogenerator@v2.3.1
id: isogenerator
with:
image-name: ${{ github.event.repository.name }}
Expand Down
5 changes: 0 additions & 5 deletions config/common_modules/kmods-installer.yml

This file was deleted.

2 changes: 0 additions & 2 deletions config/common_modules/scripts.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
type: script
scripts:
- signing.sh
- container-tools.sh
- udev-rules.sh
- systemwide-themes.sh
2 changes: 1 addition & 1 deletion config/files/usr/share/ublue-os/just/60-custom.just
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
!include 100-bling.just
import '100-bling.just'
# Include some of your custom scripts here!

# Run the yafti setup tool
Expand Down
19 changes: 0 additions & 19 deletions config/silverflow-nvidia-38.yml

This file was deleted.

1 change: 0 additions & 1 deletion config/silverflow-nvidia-39.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ is_stable_version: true
modules:
- from-file: common_modules/files.yml
- from-file: common_modules/rpm-ostree.yml
- from-file: common_modules/kmods-installer.yml
- from-file: common_modules/bling.yml
- from-file: common_modules/fonts.yml

Expand Down
17 changes: 0 additions & 17 deletions modules/kmods-installer/README.md

This file was deleted.

15 changes: 0 additions & 15 deletions modules/kmods-installer/kmods-installer.sh

This file was deleted.

0 comments on commit 63e913b

Please sign in to comment.