Skip to content

Commit

Permalink
fix: stable tag on schedule (#1919)
Browse files Browse the repository at this point in the history
Co-authored-by: m2 <[email protected]>
  • Loading branch information
befanyt and m2Giles authored Nov 10, 2024
1 parent 81fa662 commit af758c0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-image-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
generate-release:
name: Generate Release
needs: [build-image-beta]
if: github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' || github.event_name.scheduled == '40 4 * * 0'
if: github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' || github.event_name.schedule == '40 4 * * 0'
secrets: inherit
uses: ./.github/workflows/generate-release.yml
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-image-gts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
generate_release:
name: Generate Release
needs: [build-image-gts]
if: github.event_name == 'scheduled' || github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call'
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call'
secrets: inherit
uses: ./.github/workflows/generate-release.yml
with:
Expand All @@ -36,6 +36,6 @@ jobs:
build-iso-gts:
name: Build GTS ISOs
needs: [build-image-gts]
if: github.event_name == 'scheduled'
if: github.event_name == 'schedule'
secrets: inherit
uses: ./.github/workflows/build-iso-gts.yml
4 changes: 2 additions & 2 deletions .github/workflows/build-image-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
generate-release:
name: Generate Release
needs: [build-image-latest]
if: github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' || github.event_name.scheduled == '40 4 * * 0'
if: github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' || github.event_name.schedule == '40 4 * * 0'
secrets: inherit
uses: ./.github/workflows/generate-release.yml
with:
Expand All @@ -48,6 +48,6 @@ jobs:
build-iso-latest:
name: Build Latest ISOs
needs: [build-image-latest]
if: github.event_name.scheduled == '40 4 * * 0'
if: github.event_name.schedule == '40 4 * * 0'
secrets: inherit
uses: ./.github/workflows/build-iso-latest.yml
4 changes: 2 additions & 2 deletions .github/workflows/build-image-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
generate-release:
name: Generate Release
needs: [build-image-stable]
if: github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' || github.event_name.scheduled == '45 5 * * 0'
if: github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' || github.event_name.schedule == '45 5 * * 0'
secrets: inherit
uses: ./.github/workflows/generate-release.yml
with:
Expand All @@ -47,6 +47,6 @@ jobs:
build-iso-stable:
name: Build Stable ISOs
needs: [build-image-stable]
if: github.event_name.scheduled == '45 5 * * 0'
if: github.event_name.schedule == '45 5 * * 0'
secrets: inherit
uses: ./.github/workflows/build-iso-stable.yml
12 changes: 3 additions & 9 deletions .github/workflows/reusable-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,8 @@ jobs:
fi
# Kernel Release for ostree.linux label
if [[ "${{ matrix.image_flavor }}" =~ hwe ]]; then
kernel_release=$(skopeo inspect docker://ghcr.io/ublue-os/bazzite-kernel:"${fedora_version}" | jq -r '.Labels["ostree.linux"]')
elif [[ "${{ matrix.stream_name }}" =~ latest|beta ]]; then
kernel_release=$(skopeo inspect docker://ghcr.io/ublue-os/main-kernel:"${fedora_version}" | jq -r '.Labels["ostree.linux"]')
else
kernel_release=$(skopeo inspect docker://ghcr.io/ublue-os/coreos-stable-kernel:"${fedora_version}" | jq -r '.Labels["ostree.linux"]')
fi
kernel_release=$(skopeo inspect docker://ghcr.io/ublue-os/${{ env.AKMODS_FLAVOR }}-kernel:"${fedora_version}" | jq -r '.Labels["ostree.linux"]')
# Get Version
ver=$(skopeo inspect docker://ghcr.io/ublue-os/"${{ env.BASE_IMAGE_NAME }}"-main:"${fedora_version}" | jq -r '.Labels["org.opencontainers.image.version"]')
if [ -z "$ver" ] || [ "null" = "$ver" ]; then
Expand Down Expand Up @@ -189,7 +183,7 @@ jobs:
fi
# Weekly Stable / Rebuild Stable on workflow_dispatch
if [[ "${{ matrix.stream_name }}" =~ "stable" && "${WEEKLY}" == "${TODAY}" && "${{ github.event_name }}" =~ scheduled ]]; then
if [[ "${{ matrix.stream_name }}" =~ "stable" && "${WEEKLY}" == "${TODAY}" && "${{ github.event_name }}" =~ schedule ]]; then
BUILD_TAGS+=("stable" "stable-${TIMESTAMP}")
elif [[ "${{ matrix.stream_name }}" =~ "stable" && "${{ github.event_name }}" =~ workflow_dispatch|workflow_call ]]; then
BUILD_TAGS+=("stable" "stable-${TIMESTAMP}")
Expand Down

0 comments on commit af758c0

Please sign in to comment.