Skip to content

Commit

Permalink
fix: remove static links from build_iso workflow (#1977)
Browse files Browse the repository at this point in the history
* fix: remove static links from build_iso workflow

* fix: lowercase registry reference in build_iso workflow

This is needed when your GitHub username has uppercase characters in it

* fix: lowercase registry reference for build step in build_iso workflow 

This is needed when your GitHub username has uppercase characters in it
  • Loading branch information
BynariStar authored Dec 13, 2024
1 parent 4a5ef34 commit 1596901
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/build_iso.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
workflow_dispatch:
workflow_call:

env:
IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }}

concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}-iso
cancel-in-progress: true
Expand Down Expand Up @@ -73,12 +76,19 @@ jobs:
echo "flatpak-dir-shortname=${FLATPAK_DIR_SHORTNAME}" >> $GITHUB_OUTPUT
# Docker requires lowercase registry references
- name: Lowercase Registry
id: registry_case
uses: ASzc/change-string-case-action@v6
with:
string: ${{ env.IMAGE_REGISTRY }}

- name: Determine Flatpak Dependencies
id: flatpak_dependencies
shell: bash
run: |
set -ex
image="ghcr.io/ublue-os/${{ matrix.image_name }}:${{ steps.generate-tag.outputs.tag }}"
image="${{ steps.registry_case.outputs.lowercase }}/${{ matrix.image_name }}:${{ steps.generate-tag.outputs.tag }}"
# Make temp space
TEMP_FLATPAK_INSTALL_DIR=$(mktemp -d -p ${{ github.workspace }} flatpak.XXX)
# Get list of refs from directory
Expand Down Expand Up @@ -116,11 +126,11 @@ jobs:
with:
arch: x86_64
image_name: ${{ matrix.image_name }}
image_repo: ghcr.io/ublue-os
image_repo: ${{ steps.registry_case.outputs.lowercase }}
variant: 'Kinoite'
version: ${{ matrix.major_version }}
image_tag: ${{ steps.generate-tag.outputs.tag }}
secure_boot_key_url: 'https://github.com/ublue-os/bazzite/raw/main/secure_boot.der'
secure_boot_key_url: '${{ github.server_url }}/${{ github.repository }}/raw/main/secure_boot.der'
enrollment_password: 'universalblue'
iso_name: ${{ matrix.image_name }}-${{ steps.generate-tag.outputs.tag }}.iso
enable_cache_dnf: "false"
Expand Down

0 comments on commit 1596901

Please sign in to comment.