forked from ublue-os/hwe
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
22 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,17 +28,17 @@ jobs: | |
- ${{ inputs.fedora_version }} | ||
kernel_flavor: | ||
- main | ||
- asus | ||
- surface | ||
# - asus | ||
# - surface | ||
image_name: | ||
- silverblue | ||
- kinoite | ||
- sericea | ||
- onyx | ||
- base | ||
- lazurite | ||
- mate | ||
- vauxite | ||
# - kinoite | ||
# - sericea | ||
# - onyx | ||
# - base | ||
# - lazurite | ||
# - mate | ||
# - vauxite | ||
image_target: | ||
- main | ||
- nvidia | ||
|
@@ -150,12 +150,13 @@ jobs: | |
with: | ||
containers: ${{ env.SOURCE_IMAGE }}:${{ matrix.fedora_version }} | ||
registry: ${{ env.IMAGE_REGISTRY }} | ||
pubkey: https://raw.githubusercontent.com/bpbeatty/hwe/main/cosign.pub | ||
|
||
- name: Verify akmods-nvidia image | ||
uses: EyeCantCU/cosign-action/[email protected] | ||
with: | ||
containers: akmods-nvidia:${{ matrix.kernel_flavor}}-${{ matrix.fedora_version }} | ||
registry: ${{ env.IMAGE_REGISTRY }} | ||
registry: ghcr.io/ublue-os | ||
|
||
- name: Pull main and akmods-nvidia images | ||
uses: Wandalen/[email protected] | ||
|
@@ -166,7 +167,7 @@ jobs: | |
# pull the base image used for FROM in containerfile so | ||
# we can retry on that unfortunately common failure case | ||
podman pull ${{ env.IMAGE_REGISTRY }}/${{ env.SOURCE_IMAGE }}:${{ matrix.fedora_version }} | ||
podman pull ${{ env.IMAGE_REGISTRY }}/akmods-nvidia:${{ matrix.kernel_flavor }}-${{ matrix.fedora_version }} | ||
podman pull ghcr.io/ublue-os/akmods-nvidia:${{ matrix.kernel_flavor }}-${{ matrix.fedora_version }} | ||
- name: Get current version | ||
id: labels | ||
|
@@ -176,15 +177,15 @@ jobs: | |
attempt_delay: 15000 | ||
command: | | ||
set -eo pipefail | ||
skopeo inspect docker://${{ env.IMAGE_REGISTRY }}/${{ env.SOURCE_IMAGE }}:${{ matrix.fedora_version }} > source.json | ||
skopeo inspect docker://ghcr.io/ublue-os/${{ env.SOURCE_IMAGE }}:${{ matrix.fedora_version }} > source.json | ||
ver=$(jq -r '.Labels["org.opencontainers.image.version"]' source.json) | ||
if [ -z "$ver" ] || [ "null" = "$ver" ]; then | ||
echo "inspected image version must not be empty or null" | ||
exit 1 | ||
fi | ||
echo "SOURCE_IMAGE_VERSION=$ver" >> $GITHUB_ENV | ||
skopeo inspect docker://${{ env.IMAGE_REGISTRY }}/akmods-nvidia:${{ matrix.kernel_flavor }}-${{ matrix.fedora_version }} > akmods.json | ||
skopeo inspect docker://ghcr.io/ublue-os/akmods-nvidia:${{ matrix.kernel_flavor }}-${{ matrix.fedora_version }} > akmods.json | ||
linux=$(jq -r '.Labels["ostree.linux"]' akmods.json) | ||
if [ -z "$linux" ] || [ "null" = "$linux" ]; then | ||
echo "inspected image linux version must not be empty or null" | ||
|
@@ -201,7 +202,7 @@ jobs: | |
${{ env.IMAGE_NAME }} | ||
labels: | | ||
org.opencontainers.image.title=${{ env.IMAGE_NAME }} | ||
org.opencontainers.image.description=ublue-os ${{ matrix.image_name }}${{ matrix.kernel_flavor == 'asus' && ' for ASUS devices' || '' }}${{ matrix.kernel_flavor == 'surface' && ' for Surface laptops' || ''}}${{ matrix.image_target == 'nvidia' && ' with Nvidia drivers' || ''}} | ||
org.opencontainers.image.description=bpbeatty ${{ matrix.image_name }}${{ matrix.kernel_flavor == 'asus' && ' for ASUS devices' || '' }}${{ matrix.kernel_flavor == 'surface' && ' for Surface laptops' || ''}}${{ matrix.image_target == 'nvidia' && ' with Nvidia drivers' || ''}} | ||
org.opencontainers.image.version=${{ env.SOURCE_IMAGE_VERSION }} | ||
ostree.linux=${{ env.KERNEL_VERSION }} | ||
io.artifacthub.package.readme-url=https://raw.githubusercontent.com/${{ github.repository }}/main/README.md | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
-----BEGIN PUBLIC KEY----- | ||
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE7lh7fJMV4dBT2jT1XafixUJa7OVA | ||
cT+QFVD8IfIJIS/KBAc8hx1aslzkH3tfeM0cwyCLB7kOStZ4sh6RyFQD9w== | ||
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEKzG40GDYzK/xo3Fd+NcNiuBqqZKW | ||
QdbqTzIfNWjYwJH1KJAPpvvb5Ok+9o/vwjQRRuBqjvi9iKio+JHdEpzXjA== | ||
-----END PUBLIC KEY----- |