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

[pull] dev from live #37

Merged
merged 38 commits into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
9000df9
fix: use -R flag to select repo on iso-deleting `gh` commands
xynydev Nov 22, 2023
fefcf23
Merge pull request #195 from ublue-os/gh-iso-r-fix
EyeCantCU Nov 22, 2023
9b3db9c
feat: add just syntax checker (#194)
ArtikusHG Nov 22, 2023
cad7e56
Merge branch 'template' into live
c0deplayer Nov 23, 2023
a0bff9f
🐞 fix(just): fix script commands
c0deplayer Nov 23, 2023
73759ce
🌈 style(just): format justfile
c0deplayer Nov 23, 2023
5b06e25
🐞 fix(just): try to fix just syntax (part 2)
c0deplayer Nov 23, 2023
8fafec9
🐞 fix(just): try to fix just syntax (part 3)
c0deplayer Nov 23, 2023
d3818c7
🐎 ci(build): remove checking just syntax
c0deplayer Nov 23, 2023
9c9907d
feat: Update 60-custom.just file
c0deplayer Nov 24, 2023
d0af9ce
fix: typo (#199)
RoyalOughtness Nov 26, 2023
f981550
build(deps): bump mikefarah/yq from 4.40.2 to 4.40.3 (#200)
dependabot[bot] Nov 28, 2023
188383f
Merge branch 'template' into live
c0deplayer Dec 3, 2023
6bd56dd
build(deps): bump mikefarah/yq from 4.40.3 to 4.40.4
dependabot[bot] Dec 4, 2023
525412f
Fix: release-iso.yml to not fail if no images are returned (#202)
dperson Dec 10, 2023
9aa7bb2
build(deps): bump mikefarah/yq from 4.40.3 to 4.40.4 (#201)
dependabot[bot] Dec 10, 2023
f432ff4
fix: do not format just files in CI (#205)
plata Dec 13, 2023
d124a99
feat: Check that cosign.pub matches private key (#193)
mjs Dec 17, 2023
be88105
build(deps): bump mikefarah/yq from 4.40.4 to 4.40.5 (#207)
dependabot[bot] Dec 18, 2023
b597ecd
build(deps): bump sigstore/cosign-installer from 3.2.0 to 3.3.0 (#208)
dependabot[bot] Dec 18, 2023
d6806f9
chore: migrate justfile to import
xynydev Dec 27, 2023
f35d3c2
fix: add single quotes for paths
xynydev Dec 31, 2023
52e6a45
feat(ci): Verify base image with cosign before building (#211)
EyeCantCU Dec 31, 2023
ee9b4bf
Merge branch 'template' into just-import
castrojo Jan 4, 2024
ceba328
Merge pull request #213 from ublue-os/just-import
castrojo Jan 4, 2024
4963395
build(deps): bump EyeCantCU/cosign-action from 0.2.1 to 0.2.2 (#220)
dependabot[bot] Jan 9, 2024
6b2584f
build(deps): bump AdityaGarg8/remove-unwanted-software from 1 to 2 (#…
dependabot[bot] Jan 9, 2024
80b3ac0
feat: Bump ISO generator to v2.3.0 (#221)
fiftydinar Jan 12, 2024
df4f330
feat: Add akmods module (#212)
fiftydinar Jan 14, 2024
5cf7429
build(deps): bump ublue-os/isogenerator from 2.3.0 to 2.3.1 (#227)
dependabot[bot] Jan 15, 2024
dfb6abf
docs: improve modules section in config readme (#209) (#217)
xynydev Jan 24, 2024
535ed93
docs: change outdated info about minor module envvar (#216)
xynydev Jan 24, 2024
16b5e72
Merge pull request #44 from C0dePlayer/template
c0deplayer Jan 24, 2024
9e222fa
Merge pull request #42 from C0dePlayer/dependabot/github_actions/mike…
c0deplayer Jan 24, 2024
63e913b
Update build workflow and modules
c0deplayer Jan 24, 2024
d2fe7e6
Remove silverflow-nvidia-38.yml from build matrix
c0deplayer Jan 24, 2024
496d547
Update cosign public key
c0deplayer Jan 24, 2024
ea3126a
Update cosign.pub public key
c0deplayer Jan 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 38 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,29 +30,55 @@ jobs:

matrix:
recipe:
- silverflow-nvidia-38.yml
- 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].2
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 +154,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 +206,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
4 changes: 2 additions & 2 deletions .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 All @@ -35,7 +35,7 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
run: |
if gh release list -R ${{ github.repository_owner }}/${{ github.event.repository.name }} | grep "auto-iso"; then
gh release view auto-iso --json assets -q .assets[].name | xargs -L 1 gh release delete-asset auto-iso
gh release view auto-iso -R ${{ github.repository_owner }}/${{ github.event.repository.name }} --json assets -q .assets[].name | xargs --no-run-if-empty -L 1 gh release delete-asset auto-iso -R ${{ github.repository_owner }}/${{ github.event.repository.name }}
gh release upload auto-iso ${{ steps.isogenerator.outputs.iso-path }} -R ${{ github.repository_owner }}/${{ github.event.repository.name }} --clobber
else
gh release create auto-iso ${{ steps.isogenerator.outputs.iso-path }} -t ISO -n "This is an automatically generated ISO release." -R ${{ github.repository_owner }}/${{ 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: 2 additions & 0 deletions config/files/usr/share/ublue-os/just/100-bling.just
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# this file is a placeholder,
# making changes here is not supported
42 changes: 14 additions & 28 deletions config/files/usr/share/ublue-os/just/60-custom.just
Original file line number Diff line number Diff line change
@@ -1,31 +1,17 @@

# Install JetBrains Toolbox | https://www.jetbrains.com/toolbox-app/
jetbrains-toolbox:
#!/usr/bin/env bash
@pushd "$(mktemp -d)"
@echo "Get latest JetBrains Toolbox version"
# Get the json with latest releases
curl -sSfL -o releases.json "https://data.services.jetbrains.com/products/releases?code=TBA&latest=true&type=release"
# Extract information
BUILD_VERSION=$(jq -r '.TBA[0].build' ./releases.json)
DOWNLOAD_LINK=$(jq -r '.TBA[0].downloads.linux.link' ./releases.json)
CHECKSUM_LINK=$(jq -r '.TBA[0].downloads.linux.checksumLink' ./releases.json)
@echo "Installing JetBrains Toolbox ${BUILD_VERSION}"
curl -sSfL -O "${DOWNLOAD_LINK}"
curl -sSfL "${CHECKSUM_LINK}" | sha256sum -c
tar zxf jetbrains-toolbox-"${BUILD_VERSION}".tar.gz
@echo "Launching JetBrains Toolbox"
./jetbrains-toolbox-"${BUILD_VERSION}"/jetbrains-toolbox
import '100-bling.just'
# Include some of your custom scripts here!

# Run the yafti setup tool
yafti:
yafti /usr/share/ublue-os/firstboot/yafti.yml -f

# Install mamba | https://github.com/conda-forge/miniforge
mamba:
#!/usr/bin/env bash
pushd "$(mktemp -d)"
@echo "Get latest Miniforge3 version"
curl -L -O "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"
HOMEDIR=$( getent passwd "$USER" | cut -d: -f6 )
bash Miniforge3-$(uname)-$(uname -m).sh -b -p "${HOMEDIR}/mambaforge/"
yafti /usr/share/ublue-os/firstboot/yafti.yml -f


# Install pdm (modern Python package and dependency manager) | https://pdm-project.org/latest/
install-pdm:
#!/usr/bin/env bash
cd ~/Downloads || exit
curl -sSLO https://pdm-project.org/install-pdm.py
curl -sSL https://pdm-project.org/install-pdm.py.sha256 | sha256sum -c -
HOMEDIR=$( getent passwd "$USER" | cut -d: -f6 )
python3 install-pdm.py --path "${HOMEDIR}/pdm"
rm install-pdm.py
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
6 changes: 3 additions & 3 deletions cosign.pub
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEXYzStePguRGhjLNuWA9i5YNlW6JN
8l+feUSk8ItS8bbgpzaVexBEawOS+0td2YA2svct01p7LKWaggywLMFXBQ==
-----END PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEMHM7/qr9HTYvKHqBliMZsThvkiUE
htJYXuleEJmQP7FJZWUd+Z6Eui+io/ZjV54jJSkg3r1eFap5tKwiuwTTmA==
-----END PUBLIC KEY-----
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.

Loading