Skip to content

Commit

Permalink
reorganize
Browse files Browse the repository at this point in the history
  • Loading branch information
m2Giles committed Nov 8, 2024
1 parent c8e0fe6 commit 5353069
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/reusable-build-iso.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,8 @@ jobs:
- name: Build ISO
shell: bash
run: |
sudo cp $(which just) /usr/local/bin/just
sudo just build-iso-ghcr "${{ matrix.base_name }} ${{ matrix.stream_name }} ${{ matrix.image_flavor }}"
image_name="$(just image_name ${{ matrix.base_name }} ${{ matrix.image_flavor }})"
sudo $(which just) build-iso-ghcr "${{ matrix.base_name }} ${{ matrix.stream_name }} ${{ matrix.image_flavor }}"
echo "IMAGE_NAME=${image_name}" >> $GITHUB_ENV
echo "ISO_BUILD_DIR=${{ github.workspace }}/${image_name}_build" >> $GITHUB_ENV
echo "ISO_NAME=${image_name}.iso" >> $GITHUB_ENV
Expand Down
33 changes: 17 additions & 16 deletions .github/workflows/reusable-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,23 @@ jobs:

- name: Check just syntax
uses: ublue-os/just-action@bda593098a84a84973b002b4377709166a68be52 # v2

- name: Image Name
shell: bash
run: |
IMAGE_NAME="$(just image_name ${{ matrix.base_name }} ${{ matrix.image_flavor }})"
echo "IMAGE_NAME=${IMAGE_NAME}" >> $GITHUB_ENV
- name: Maximize build space
uses: ublue-os/remove-unwanted-software@517622d6452028f266b7ba4cc9a123b5f58a6b53 # v7
with:
remove-codeql: true

- name: Build and Rechunk Image
id: build-image
shell: bash
run: |
sudo $(which just) build-pipeline "${{ matrix.base_name }}" "${{ matrix.stream_name }}" "${{ matrix.image_flavor }}" "${{ inputs.kernel_pin }}"
- name: Generate tags
id: generate-tags
Expand All @@ -58,7 +75,6 @@ jobs:
TODAY="$(date +%A)"
WEEKLY="Sunday"
FEDORA_VERSION="$(just fedora_version ${{ matrix.base_name}} ${{ matrix.stream_name}} ${{ matrix.image_flavor}} 1)"
IMAGE_NAME="$(just image_name ${{ matrix.base_name }} ${{ matrix.image_flavor }})"
# Arrays for Tags
COMMIT_TAGS=()
Expand Down Expand Up @@ -112,22 +128,7 @@ jobs:
fi
echo "alias_tags=${alias_tags[*]}" >> $GITHUB_OUTPUT
echo "IMAGE_NAME=${IMAGE_NAME}" >> $GITHUB_ENV
- name: Maximize build space
uses: ublue-os/remove-unwanted-software@517622d6452028f266b7ba4cc9a123b5f58a6b53 # v7
with:
remove-codeql: true

- name: Build and Rechunk Image
id: build-image
shell: bash
run: |
set -eoux pipefail
sudo cp $(which just) /usr/local/bin/just
sudo just build-pipeline "${{ matrix.base_name }}" "${{ matrix.stream_name }}" "${{ matrix.image_flavor }}" "${{ inputs.kernel_pin }}"
sudo rm /usr/local/bin/just
# Tag Images
- name: Tag Images
shell: bash
Expand Down

0 comments on commit 5353069

Please sign in to comment.