Change FEDORA_VERSION to latest, rename build.yml to build-kde.yml to be more specific, rename packages bazzite-custom-gnome => bazzite-badblocks-gnome and bazzite-custom => bazzite-badblocks-kde
This commit is contained in:
parent
aeb9ef6348
commit
d7ff16c3fc
3 changed files with 54 additions and 56 deletions
53
.github/workflows/build-gnome.yml
vendored
53
.github/workflows/build-gnome.yml
vendored
|
|
@ -1,11 +1,11 @@
|
||||||
---
|
---
|
||||||
name: build-bazzite-gnome-stable-40
|
name: build-bazzite-gnome
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '05 10 * * 0' # 10:05am UTC every Sunday
|
- cron: '05 05 * * ' # 05:05am UTC everyday
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|
@ -14,18 +14,16 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
MY_IMAGE_NAME: "bazzite-gnome-custom" # the name of the image produced by this build
|
|
||||||
MY_IMAGE_DESC: "badblocks's custom bazzite-gnome build"
|
|
||||||
MAJOR_VERSION: "40"
|
|
||||||
SOURCE_IMAGE: "bazzite"
|
SOURCE_IMAGE: "bazzite"
|
||||||
SOURCE_SUFFIX: "-gnome"
|
SOURCE_SUFFIX: "-gnome"
|
||||||
VERSION_SUFFIX: "stable"
|
MY_IMAGE_NAME: "${{SOURCE_IMAGE}}-badblocks-gnome" # the name of the image produced by this build
|
||||||
|
MY_IMAGE_DESC: "badblocks's custom bazzite-gnome build"
|
||||||
IMAGE_REGISTRY: "ghcr.io/${{ github.repository_owner }}" # do not edit
|
IMAGE_REGISTRY: "ghcr.io/${{ github.repository_owner }}" # do not edit
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_push:
|
build_push:
|
||||||
name: Build and push image
|
name: Build and push image
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-24.04
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
@ -35,7 +33,10 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
# Checkout push-to-registry action GitHub repository
|
# Checkout push-to-registry action GitHub repository
|
||||||
- name: Checkout Push to Registry action
|
- name: Checkout Push to Registry action
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Maximize build space
|
||||||
|
uses: ublue-os/remove-unwanted-software@v7
|
||||||
|
|
||||||
- name: Generate tags
|
- name: Generate tags
|
||||||
id: generate-tags
|
id: generate-tags
|
||||||
|
|
@ -56,19 +57,17 @@ jobs:
|
||||||
BUILD_TAGS+=("${TAG}-${TIMESTAMP}")
|
BUILD_TAGS+=("${TAG}-${TIMESTAMP}")
|
||||||
done
|
done
|
||||||
|
|
||||||
if [[ ${{ github.ref_name }} == "unstable" ]]; then
|
|
||||||
BUILD_TAGS+=("${MAJOR_VERSION}-unstable" "${MAJOR_VERSION}-unstable-${TIMESTAMP}")
|
|
||||||
BUILD_TAGS+=("unstable")
|
|
||||||
elif [[ ${{ github.ref_name }} == "testing" ]]; then
|
|
||||||
BUILD_TAGS+=("${MAJOR_VERSION}-testing" "${MAJOR_VERSION}-testing-${TIMESTAMP}")
|
|
||||||
BUILD_TAGS+=("testing")
|
|
||||||
else
|
|
||||||
BUILD_TAGS+=("${MAJOR_VERSION}" "${MAJOR_VERSION}-${TIMESTAMP}")
|
|
||||||
BUILD_TAGS+=("${MAJOR_VERSION}-stable" "${MAJOR_VERSION}-stable-${TIMESTAMP}")
|
|
||||||
BUILD_TAGS+=("latest" "stable")
|
|
||||||
fi
|
|
||||||
|
|
||||||
BUILD_TAGS+=("${TIMESTAMP}")
|
BUILD_TAGS+=("${TIMESTAMP}")
|
||||||
|
if [[ ${{ github.ref_name }} == "unstable" ]]; then
|
||||||
|
BUILD_TAGS+=("unstable")
|
||||||
|
SOURCE_VERSION="unstable"
|
||||||
|
elif [[ ${{ github.ref_name }} == "testing" ]]; then
|
||||||
|
BUILD_TAGS+=("testing")
|
||||||
|
SOURCE_VERSION="testing"
|
||||||
|
else
|
||||||
|
BUILD_TAGS+=("latest" "stable")
|
||||||
|
SOURCE_VERSION="latest"
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
|
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
|
||||||
echo "Generated the following commit tags: "
|
echo "Generated the following commit tags: "
|
||||||
|
|
@ -90,7 +89,7 @@ jobs:
|
||||||
|
|
||||||
# Build metadata
|
# Build metadata
|
||||||
- name: Image Metadata
|
- name: Image Metadata
|
||||||
uses: docker/metadata-action@v4
|
uses: docker/metadata-action@v5
|
||||||
id: meta
|
id: meta
|
||||||
with:
|
with:
|
||||||
images: |
|
images: |
|
||||||
|
|
@ -114,7 +113,7 @@ jobs:
|
||||||
build-args: |
|
build-args: |
|
||||||
SOURCE_IMAGE=${{ env.SOURCE_IMAGE }}
|
SOURCE_IMAGE=${{ env.SOURCE_IMAGE }}
|
||||||
SOURCE_SUFFIX=${{ env.SOURCE_SUFFIX }}
|
SOURCE_SUFFIX=${{ env.SOURCE_SUFFIX }}
|
||||||
FEDORA_VERSION=${{ env.MAJOR_VERSION }}-${{ env.VERSION_SUFFIX }}
|
FEDORA_VERSION=${{ env.SOURCE_VERSION }}
|
||||||
tags: |
|
tags: |
|
||||||
${{ steps.generate-tags.outputs.alias_tags }}
|
${{ steps.generate-tags.outputs.alias_tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
|
@ -124,12 +123,12 @@ jobs:
|
||||||
# https://github.com/macbre/push-to-ghcr/issues/12
|
# https://github.com/macbre/push-to-ghcr/issues/12
|
||||||
- name: Lowercase Registry
|
- name: Lowercase Registry
|
||||||
id: registry_case
|
id: registry_case
|
||||||
uses: ASzc/change-string-case-action@v5
|
uses: ASzc/change-string-case-action@v6
|
||||||
with:
|
with:
|
||||||
string: ${{ env.IMAGE_REGISTRY }}
|
string: ${{ env.IMAGE_REGISTRY }}
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
|
|
@ -150,13 +149,13 @@ jobs:
|
||||||
extra-args: |
|
extra-args: |
|
||||||
--disable-content-trust
|
--disable-content-trust
|
||||||
|
|
||||||
# This section is optional and only needs to be enabled in you plan on distributing
|
# This section is optional and only needs to be enabled if you plan on distributing
|
||||||
# your project to others to consume. You will need to create a public and private key
|
# your project for others to consume. You will need to create a public and private key
|
||||||
# using Cosign and save the private key as a repository secret in Github for this workflow
|
# using Cosign and save the private key as a repository secret in Github for this workflow
|
||||||
# to consume. For more details, review the image signing section of the README.
|
# to consume. For more details, review the image signing section of the README.
|
||||||
|
|
||||||
# Sign container
|
# Sign container
|
||||||
- uses: sigstore/cosign-installer@v3.4.0
|
- uses: sigstore/cosign-installer@v3.5.0
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
|
|
||||||
- name: Sign container image
|
- name: Sign container image
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
---
|
---
|
||||||
name: build-bazzite-stable-40
|
name: build-bazzite-kde
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '05 10 * * 0' # 10:05am UTC every Sunday
|
- cron: '05 05 * * ' # 05:05am UTC everyday
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|
@ -14,18 +14,16 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
MY_IMAGE_NAME: "bazzite-custom" # the name of the image produced by this build
|
|
||||||
MY_IMAGE_DESC: "badblocks's custom bazzite build"
|
|
||||||
MAJOR_VERSION: "40"
|
|
||||||
SOURCE_IMAGE: "bazzite"
|
SOURCE_IMAGE: "bazzite"
|
||||||
SOURCE_SUFFIX: ""
|
SOURCE_SUFFIX: ""
|
||||||
VERSION_SUFFIX: "stable"
|
MY_IMAGE_NAME: "${{SOURCE_IMAGE}}-badblocks-kde" # the name of the image produced by this build
|
||||||
|
MY_IMAGE_DESC: "badblocks's custom bazzite build"
|
||||||
IMAGE_REGISTRY: "ghcr.io/${{ github.repository_owner }}" # do not edit
|
IMAGE_REGISTRY: "ghcr.io/${{ github.repository_owner }}" # do not edit
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_push:
|
build_push:
|
||||||
name: Build and push image
|
name: Build and push image
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-24.04
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
@ -35,7 +33,10 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
# Checkout push-to-registry action GitHub repository
|
# Checkout push-to-registry action GitHub repository
|
||||||
- name: Checkout Push to Registry action
|
- name: Checkout Push to Registry action
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Maximize build space
|
||||||
|
uses: ublue-os/remove-unwanted-software@v7
|
||||||
|
|
||||||
- name: Generate tags
|
- name: Generate tags
|
||||||
id: generate-tags
|
id: generate-tags
|
||||||
|
|
@ -56,19 +57,17 @@ jobs:
|
||||||
BUILD_TAGS+=("${TAG}-${TIMESTAMP}")
|
BUILD_TAGS+=("${TAG}-${TIMESTAMP}")
|
||||||
done
|
done
|
||||||
|
|
||||||
if [[ ${{ github.ref_name }} == "unstable" ]]; then
|
|
||||||
BUILD_TAGS+=("${MAJOR_VERSION}-unstable" "${MAJOR_VERSION}-unstable-${TIMESTAMP}")
|
|
||||||
BUILD_TAGS+=("unstable")
|
|
||||||
elif [[ ${{ github.ref_name }} == "testing" ]]; then
|
|
||||||
BUILD_TAGS+=("${MAJOR_VERSION}-testing" "${MAJOR_VERSION}-testing-${TIMESTAMP}")
|
|
||||||
BUILD_TAGS+=("testing")
|
|
||||||
else
|
|
||||||
BUILD_TAGS+=("${MAJOR_VERSION}" "${MAJOR_VERSION}-${TIMESTAMP}")
|
|
||||||
BUILD_TAGS+=("${MAJOR_VERSION}-stable" "${MAJOR_VERSION}-stable-${TIMESTAMP}")
|
|
||||||
BUILD_TAGS+=("latest" "stable")
|
|
||||||
fi
|
|
||||||
|
|
||||||
BUILD_TAGS+=("${TIMESTAMP}")
|
BUILD_TAGS+=("${TIMESTAMP}")
|
||||||
|
if [[ ${{ github.ref_name }} == "unstable" ]]; then
|
||||||
|
BUILD_TAGS+=("unstable")
|
||||||
|
SOURCE_VERSION="unstable"
|
||||||
|
elif [[ ${{ github.ref_name }} == "testing" ]]; then
|
||||||
|
BUILD_TAGS+=("testing")
|
||||||
|
SOURCE_VERSION="testing"
|
||||||
|
else
|
||||||
|
BUILD_TAGS+=("latest" "stable")
|
||||||
|
SOURCE_VERSION="latest"
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
|
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
|
||||||
echo "Generated the following commit tags: "
|
echo "Generated the following commit tags: "
|
||||||
|
|
@ -90,7 +89,7 @@ jobs:
|
||||||
|
|
||||||
# Build metadata
|
# Build metadata
|
||||||
- name: Image Metadata
|
- name: Image Metadata
|
||||||
uses: docker/metadata-action@v4
|
uses: docker/metadata-action@v5
|
||||||
id: meta
|
id: meta
|
||||||
with:
|
with:
|
||||||
images: |
|
images: |
|
||||||
|
|
@ -114,7 +113,7 @@ jobs:
|
||||||
build-args: |
|
build-args: |
|
||||||
SOURCE_IMAGE=${{ env.SOURCE_IMAGE }}
|
SOURCE_IMAGE=${{ env.SOURCE_IMAGE }}
|
||||||
SOURCE_SUFFIX=${{ env.SOURCE_SUFFIX }}
|
SOURCE_SUFFIX=${{ env.SOURCE_SUFFIX }}
|
||||||
FEDORA_VERSION=${{ env.MAJOR_VERSION }}-${{ env.VERSION_SUFFIX }}
|
FEDORA_VERSION=${{ env.SOURCE_VERSION }}
|
||||||
tags: |
|
tags: |
|
||||||
${{ steps.generate-tags.outputs.alias_tags }}
|
${{ steps.generate-tags.outputs.alias_tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
|
@ -124,12 +123,12 @@ jobs:
|
||||||
# https://github.com/macbre/push-to-ghcr/issues/12
|
# https://github.com/macbre/push-to-ghcr/issues/12
|
||||||
- name: Lowercase Registry
|
- name: Lowercase Registry
|
||||||
id: registry_case
|
id: registry_case
|
||||||
uses: ASzc/change-string-case-action@v5
|
uses: ASzc/change-string-case-action@v6
|
||||||
with:
|
with:
|
||||||
string: ${{ env.IMAGE_REGISTRY }}
|
string: ${{ env.IMAGE_REGISTRY }}
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
|
|
@ -150,13 +149,13 @@ jobs:
|
||||||
extra-args: |
|
extra-args: |
|
||||||
--disable-content-trust
|
--disable-content-trust
|
||||||
|
|
||||||
# This section is optional and only needs to be enabled in you plan on distributing
|
# This section is optional and only needs to be enabled if you plan on distributing
|
||||||
# your project to others to consume. You will need to create a public and private key
|
# your project for others to consume. You will need to create a public and private key
|
||||||
# using Cosign and save the private key as a repository secret in Github for this workflow
|
# using Cosign and save the private key as a repository secret in Github for this workflow
|
||||||
# to consume. For more details, review the image signing section of the README.
|
# to consume. For more details, review the image signing section of the README.
|
||||||
|
|
||||||
# Sign container
|
# Sign container
|
||||||
- uses: sigstore/cosign-installer@v3.4.0
|
- uses: sigstore/cosign-installer@v3.5.0
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
|
|
||||||
- name: Sign container image
|
- name: Sign container image
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
# How to Use
|
# How to Use
|
||||||
|
|
||||||
`rpm-ostree rebase ostree-image-signed:docker://ghcr.io/badbl0cks/bazzite-custom`
|
`rpm-ostree rebase ostree-image-signed:docker://ghcr.io/badbl0cks/bazzite-badblocks-kde`
|
||||||
|
|
||||||
or
|
or
|
||||||
|
|
||||||
`rpm-ostree rebase ostree-image-signed:docker://ghcr.io/badbl0cks/bazzite-gnome-custom`
|
`rpm-ostree rebase ostree-image-signed:docker://ghcr.io/badbl0cks/bazzite-badblocks-gnome`
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue