2023-08-26 09:06:51 +00:00
name : Build Bazzite
2023-02-09 19:08:39 +00:00
on :
2023-06-18 19:22:17 +00:00
schedule :
2024-08-15 05:20:45 +00:00
- cron : "40 4 * * 1" # 4:40 utc monday
2023-02-09 19:08:39 +00:00
pull_request :
branches :
2023-11-20 16:54:13 +00:00
- testing
- unstable
2023-06-18 19:22:17 +00:00
paths-ignore :
2024-07-23 02:30:15 +00:00
- "**.md"
- "**.txt"
- "installer/**"
- "repo_content/**"
- "spec_files/**"
- "post_install_files/**"
- "press_kit/**"
2024-08-21 18:56:12 +00:00
- "docs/**"
2024-07-23 02:30:15 +00:00
- ".github/workflows/build_iso.yml"
2023-02-09 19:08:39 +00:00
push :
branches :
2023-11-01 18:25:24 +00:00
- testing
- unstable
2023-06-18 19:22:17 +00:00
paths-ignore :
2024-07-23 02:30:15 +00:00
- "**.md"
- "**.txt"
- "repo_content/**"
- "spec_files/**"
- "post_install_files/**"
- "press_kit/**"
- ".github/workflows/build_iso.yml"
2023-06-18 19:22:17 +00:00
merge_group :
workflow_dispatch :
2024-07-31 18:40:29 +00:00
inputs :
# Run with this periodically to analyze the image again
# As package drift will make the plan eventually non-ideal
# (existing users will have to redownload most of the image)
fresh-rechunk :
description : 'Clear rechunk history'
type : boolean
default : false
2023-02-09 19:08:39 +00:00
env :
2023-11-01 18:25:24 +00:00
IMAGE_REGISTRY : ghcr.io/${{ github.repository_owner }}
2023-02-09 19:08:39 +00:00
2023-11-05 16:31:41 +00:00
concurrency :
group : ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress : true
2023-02-09 19:08:39 +00:00
jobs :
push-ghcr :
2023-09-29 00:27:53 +00:00
name : Make
2024-05-16 14:28:10 +00:00
runs-on : ubuntu-24.04
2024-04-02 17:15:26 +00:00
continue-on-error : false
2023-02-09 19:08:39 +00:00
permissions :
contents : read
packages : write
id-token : write
strategy :
fail-fast : false
matrix :
2024-04-22 17:15:28 +00:00
base_image_flavor : [ main]
2024-09-05 02:13:53 +00:00
base_name : [ bazzite, bazzite-deck, bazzite-nvidia]
2023-08-02 01:07:29 +00:00
base_image_name : [ kinoite, silverblue]
2024-04-22 17:15:28 +00:00
target_image_flavor : [ main, asus]
2024-09-05 02:13:53 +00:00
target_nvidia_flavor : [ nvidia, nvidia-open]
2024-10-18 22:14:05 +00:00
fedora_version : [ 41 ]
2023-02-09 19:08:39 +00:00
include :
2024-10-18 22:14:05 +00:00
- fedora_version : 41
2023-10-13 20:35:10 +00:00
is_latest_version : true
2023-06-18 19:22:17 +00:00
is_stable_version : true
2024-10-18 22:14:05 +00:00
kernel_flavor : bazzite # must match a kernel_flavor from akmods repo
2024-10-19 06:55:13 +00:00
kernel_version : 6.11 .4 -301. bazzite.fc41.x86_64 # must match a cached version of the above flavor
2024-09-05 02:13:53 +00:00
exclude :
- base_name : bazzite
target_nvidia_flavor : nvidia
- base_name : bazzite-deck
target_nvidia_flavor : nvidia
2023-05-23 19:11:45 +00:00
steps :
2024-04-22 17:15:28 +00:00
- name : Define env.IMAGE_FLAVOR
2023-06-18 19:22:17 +00:00
run : |
2024-09-05 02:13:53 +00:00
if [[ "${{ matrix.base_name }}" == "bazzite-nvidia" ]]; then
2024-04-22 17:15:28 +00:00
if [[ "${{ matrix.target_image_flavor }}" == "main" ]]; then
2024-09-07 07:01:51 +00:00
echo "IMAGE_FLAVOR=${{ matrix.target_nvidia_flavor }}" >> $GITHUB_ENV
2023-11-30 15:48:31 +00:00
else
2024-09-07 07:01:51 +00:00
echo "IMAGE_FLAVOR=${{ format('{0}-{1}', matrix.target_image_flavor, matrix.target_nvidia_flavor) }}" >> $GITHUB_ENV
2023-11-30 15:48:31 +00:00
fi
else
2024-04-22 17:15:28 +00:00
echo "IMAGE_FLAVOR=${{ matrix.target_image_flavor }}" >> $GITHUB_ENV
2023-11-30 15:48:31 +00:00
fi
2024-04-22 17:15:28 +00:00
- name : Define env.IMAGE_NAME
2023-11-30 15:48:31 +00:00
run : |
2023-12-01 01:36:32 +00:00
DESKTOP=""
if [[ "${{ matrix.base_image_name }}" == "silverblue" ]]; then
DESKTOP="-gnome"
fi
2023-09-29 02:29:19 +00:00
if [[ "${{ matrix.base_name }}" == "bazzite-deck" ]]; then
2024-04-22 17:15:28 +00:00
if [[ "${{ matrix.target_image_flavor }}" == "asus" ]]; then
2023-09-29 02:29:19 +00:00
echo "IMAGE_NAME=${{ format('{0}{1}', 'bazzite-ally', '${DESKTOP}') }}" >> $GITHUB_ENV
2023-08-02 01:07:29 +00:00
else
2023-09-29 02:29:19 +00:00
echo "IMAGE_NAME=${{ format('{0}{1}', 'bazzite-deck', '${DESKTOP}') }}" >> $GITHUB_ENV
2023-08-02 01:07:29 +00:00
fi
2023-06-18 19:22:17 +00:00
else
2023-11-30 15:48:31 +00:00
if [[ "${{ env.IMAGE_FLAVOR }}" == "main" ]]; then
echo "IMAGE_NAME=${{ format('{0}{1}', 'bazzite', '${DESKTOP}') }}" >> $GITHUB_ENV
2023-08-02 01:07:29 +00:00
else
2023-11-30 15:48:31 +00:00
echo "IMAGE_NAME=${{ format('{0}{1}-{2}', 'bazzite', '${DESKTOP}', env.IMAGE_FLAVOR) }}" >> $GITHUB_ENV
2023-08-02 01:07:29 +00:00
fi
2023-06-18 19:22:17 +00:00
fi
2024-07-13 16:49:22 +00:00
- name : Define env.SHA_HEAD_SHORT
run : |
echo "SHA_HEAD_SHORT=${GITHUB_SHA::7}" >> $GITHUB_ENV
2024-04-22 17:15:28 +00:00
- name : Verify main image
2024-07-15 15:06:57 +00:00
uses : EyeCantCU/cosign-action/verify@v0.3.0
2024-04-22 17:15:28 +00:00
with :
containers : ${{ matrix.base_image_name }}-${{ matrix.base_image_flavor }}:${{ matrix.fedora_version }}
pubkey : https://raw.githubusercontent.com/ublue-os/${{ matrix.base_image_flavor }}/main/cosign.pub
registry : ${{ env.IMAGE_REGISTRY }}
- name : Verify akmods image
2024-07-15 15:06:57 +00:00
uses : EyeCantCU/cosign-action/verify@v0.3.0
2024-04-22 17:15:28 +00:00
with :
2024-08-20 15:56:11 +00:00
containers : akmods:${{ matrix.kernel_flavor}}-${{ matrix.fedora_version }}-${{ matrix.kernel_version }}
2024-06-27 16:41:57 +00:00
pubkey : https://raw.githubusercontent.com/ublue-os/akmods/main/cosign.pub
2024-04-22 17:15:28 +00:00
registry : ${{ env.IMAGE_REGISTRY }}
2024-06-27 16:41:57 +00:00
- name : Verify akmods-nvidia image
2024-07-15 15:06:57 +00:00
uses : EyeCantCU/cosign-action/verify@v0.3.0
2024-04-22 17:15:28 +00:00
with :
2024-09-05 02:13:53 +00:00
containers : akmods-${{ matrix.target_nvidia_flavor }}:${{ matrix.kernel_flavor}}-${{ matrix.fedora_version }}-${{ matrix.kernel_version }}
2024-06-27 16:41:57 +00:00
pubkey : https://raw.githubusercontent.com/ublue-os/akmods/main/cosign.pub
2024-04-22 17:15:28 +00:00
registry : ${{ env.IMAGE_REGISTRY }}
# Checkout push-to-registry action GitHub repository
- name : Checkout Push to Registry action
uses : actions/checkout@v4
2024-08-28 22:48:19 +00:00
# Prepare offline documentation
- run : mkdir -p ${{ github.workspace }}/system_files/desktop/shared/usr/share/ublue-os/docs/html
2024-09-15 17:39:02 +00:00
continue-on-error : true
2024-09-14 15:39:43 +00:00
- name : Checkout docs repo
2024-09-15 17:39:02 +00:00
run : rm -r ${{ github.workspace }}/docs && git clone https://github.com/KyleGospo/docs.bazzite.gg.git ${{ github.workspace }}/docs
continue-on-error : true
2024-08-28 22:48:19 +00:00
- name : Build offline documentation
uses : ./.github/workflows/build_mkdocs
2024-08-22 20:56:29 +00:00
continue-on-error : true
2024-08-28 22:48:19 +00:00
with :
github_token : ${{ github.token }}
output_dir : ${{ github.workspace }}/system_files/desktop/shared/usr/share/ublue-os/docs/html
upload_github_page : "false"
2024-08-22 20:56:29 +00:00
2024-04-22 17:15:28 +00:00
- name : Check just syntax
2024-09-16 21:57:47 +00:00
uses : ublue-os/just-action@v2
2024-04-22 17:15:28 +00:00
- name : Maximize build space
2024-05-16 16:43:05 +00:00
uses : ublue-os/remove-unwanted-software@v7
2024-04-22 17:15:28 +00:00
2024-07-31 15:25:58 +00:00
- name : Pull main, akmods, rechunk images
2024-05-13 20:56:45 +00:00
uses : Wandalen/wretry.action@v3.5.0
2024-04-22 17:15:28 +00:00
with :
attempt_limit : 3
attempt_delay : 15000
command : |
# pull the base images used for FROM in Containerfile so
# we can retry on that unfortunately common failure case
2024-07-31 15:25:58 +00:00
sudo podman pull ${{ env.IMAGE_REGISTRY }}/${{ matrix.base_image_name }}-${{ matrix.base_image_flavor }}:${{ matrix.fedora_version }}
2024-08-20 15:56:11 +00:00
sudo podman pull ${{ env.IMAGE_REGISTRY }}/akmods:${{ matrix.kernel_flavor}}-${{ matrix.fedora_version }}-${{ matrix.kernel_version }}
2024-09-05 02:13:53 +00:00
sudo podman pull ${{ env.IMAGE_REGISTRY }}/akmods-${{ matrix.target_nvidia_flavor }}:${{ matrix.kernel_flavor}}-${{ matrix.fedora_version }}-${{ matrix.kernel_version }}
2024-07-31 15:25:58 +00:00
# Add rechunk as well to remove this source of failure
2024-08-09 21:42:44 +00:00
sudo podman pull ghcr.io/hhd-dev/rechunk:v0.8.3
2024-04-22 17:15:28 +00:00
2024-04-27 19:42:15 +00:00
- name : Get source versions
2023-03-30 05:18:47 +00:00
id : labels
2024-05-13 20:56:45 +00:00
uses : Wandalen/wretry.action@v3.5.0
2024-04-27 19:42:15 +00:00
with :
attempt_limit : 3
attempt_delay : 15000
command : |
set -eo pipefail
2024-04-27 20:33:32 +00:00
skopeo inspect docker://${{ env.IMAGE_REGISTRY }}/${{ matrix.base_image_name }}-${{ matrix.base_image_flavor }}:${{ matrix.fedora_version }} > source.json
2024-04-27 19:42:15 +00:00
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
2024-08-02 04:49:50 +00:00
# Generate a primary version key that appears
# in KDE, rpm-ostree status, and github.
- name : Generate Version
id : generate-version
shell : bash
run : |
# Generate the primary version key that will be stored on os-release,
# shown on the bootloader, and used for the image tag.
UPSTREAM_TAG="${{ env.SOURCE_IMAGE_VERSION }}"
2024-10-14 16:30:40 +00:00
# Remove .0 suffix from upstream tag so we can add our own and
# the wrong one does not end up in the image.
UPSTREAM_TAG="${UPSTREAM_TAG%.*}"
2024-08-02 04:49:50 +00:00
FEDORA_VERSION="${{ matrix.fedora_version }}"
SHA_SHORT="${GITHUB_SHA::7}"
if [ -n "${{ github.event.pull_request.number }}" ]; then
VERSION="pr-${FEDORA_VERSION}-${{ github.event.pull_request.number }}"
PRETTY_VERSION="PR (${{ github.event.pull_request.number }}, ${UPSTREAM_TAG})"
elif [[ ${{ github.ref_name }} == "unstable" ]]; then
2024-10-14 16:30:40 +00:00
VERSION="unstable-${UPSTREAM_TAG}"
PRETTY_VERSION="Unstable (F${UPSTREAM_TAG}, #${SHA_SHORT})"
2024-08-02 04:49:50 +00:00
elif [[ ${{ github.ref_name }} == "testing" ]]; then
2024-08-20 01:27:22 +00:00
VERSION="testing-${UPSTREAM_TAG}"
2024-10-14 16:30:40 +00:00
PRETTY_VERSION="Testing (F${UPSTREAM_TAG}, #${SHA_SHORT})"
2024-08-02 04:49:50 +00:00
else
2024-08-20 01:27:22 +00:00
VERSION="${UPSTREAM_TAG}"
PRETTY_VERSION="Stable (F${UPSTREAM_TAG})"
2024-08-02 04:49:50 +00:00
fi
echo "tag=${VERSION}" >> $GITHUB_OUTPUT
echo "pretty=${PRETTY_VERSION}" >> $GITHUB_OUTPUT
echo "Generated the following:"
cat $GITHUB_OUTPUT
2023-03-30 05:18:47 +00:00
2024-07-31 15:25:58 +00:00
# Build image using buildah and save it to raw-img
- name : Build Image
id : build_image
run : |
sudo buildah build \
--target ${{ matrix.base_name }} \
--build-arg IMAGE_NAME=${{ env.IMAGE_NAME }} \
--build-arg IMAGE_FLAVOR=${{ env.IMAGE_FLAVOR }} \
2024-09-05 02:13:53 +00:00
--build-arg NVIDIA_FLAVOR=${{ matrix.target_nvidia_flavor }} \
2024-07-31 15:25:58 +00:00
--build-arg IMAGE_VENDOR=${{ github.repository_owner }} \
--build-arg BASE_IMAGE_NAME=${{ matrix.base_image_name }} \
--build-arg BASE_IMAGE_FLAVOR=${{ matrix.base_image_flavor }} \
--build-arg FEDORA_VERSION=${{ matrix.fedora_version }} \
--build-arg KERNEL_FLAVOR=${{ matrix.kernel_flavor }} \
2024-08-20 03:04:31 +00:00
--build-arg KERNEL_VERSION=${{ matrix.kernel_version }} \
2024-07-31 15:25:58 +00:00
--build-arg IMAGE_BRANCH=${{ github.ref_name }} \
--build-arg SHA_HEAD_SHORT=${{ env.SHA_HEAD_SHORT }} \
2024-08-02 04:49:50 +00:00
--build-arg VERSION_TAG=${{ steps.generate-version.outputs.tag }} \
--build-arg VERSION_PRETTY="${{ steps.generate-version.outputs.pretty }}" \
2024-07-31 15:25:58 +00:00
--tag raw-img .
- name : Remove auxiliary images
# We are tight on space, need at least 2x for OSTree
2024-08-06 05:23:46 +00:00
run : |
2024-07-31 15:25:58 +00:00
sudo podman image rm ${{ env.IMAGE_REGISTRY }}/${{ matrix.base_image_name }}-${{ matrix.base_image_flavor }}:${{ matrix.fedora_version }}
2024-08-20 15:56:11 +00:00
sudo podman image rm ${{ env.IMAGE_REGISTRY }}/akmods:${{ matrix.kernel_flavor}}-${{ matrix.fedora_version }}-${{ matrix.kernel_version }}
2024-09-05 02:13:53 +00:00
sudo podman image rm ${{ env.IMAGE_REGISTRY }}/akmods-${{ matrix.target_nvidia_flavor }}:${{ matrix.kernel_flavor}}-${{ matrix.fedora_version }}-${{ matrix.kernel_version }}
2024-07-31 15:25:58 +00:00
2024-08-19 02:49:45 +00:00
# Generate the previous image reference used by the Rechunker
- name : Generate previous reference
id : generate-prev-ref
shell : bash
run : |
if [ "${{ github.event.inputs.fresh-rechunk }}" == "true" ]; then
IMAGEREF=""
else
2024-08-19 03:27:25 +00:00
IMAGEREF="${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:stable"
2024-08-19 02:49:45 +00:00
fi
echo "ref=${IMAGEREF}" >> $GITHUB_OUTPUT
echo "Generated the following:"
cat $GITHUB_OUTPUT
2024-07-31 15:25:58 +00:00
# Reprocess raw-img using rechunker which will delete it
- name : Run Rechunker
id : rechunk
2024-08-20 15:57:20 +00:00
uses : hhd-dev/rechunk@v0.8.6
2023-02-15 21:48:36 +00:00
with :
2024-08-09 21:42:44 +00:00
rechunk : 'ghcr.io/hhd-dev/rechunk:v0.8.3'
2024-07-31 15:25:58 +00:00
ref : 'raw-img'
2024-08-19 02:49:45 +00:00
prev-ref : '${{ steps.generate-prev-ref.outputs.ref }}'
2024-08-02 04:49:50 +00:00
version : '${{ steps.generate-version.outputs.tag }}'
2023-02-15 21:48:36 +00:00
labels : |
2023-07-18 07:19:12 +00:00
io.artifacthub.package.logo-url=https://raw.githubusercontent.com/ublue-os/bazzite/main/repo_content/logo.png
2024-08-22 00:05:30 +00:00
io.artifacthub.package.readme-url=https://docs.bazzite.gg
2024-07-31 15:25:58 +00:00
org.opencontainers.image.created=<timestamp>
2024-08-21 00:51:55 +00:00
org.opencontainers.image.description=Bazzite is a custom image built upon Fedora Atomic Desktops that brings the best of Linux gaming to all of your devices - including your favorite handheld.
2024-07-31 15:25:58 +00:00
org.opencontainers.image.licenses=Apache-2.0
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.source=https://github.com/ublue-os/bazzite
2024-08-21 00:51:55 +00:00
org.opencontainers.image.title=Bazzite
org.opencontainers.image.vendor=Universal Blue
org.opencontainers.image.url=https://bazzite.gg
2024-08-02 04:49:50 +00:00
org.universal-blue.pkg.kernel=<relver:kernel>
org.universal-blue.pkg.gamescope=<relver:gamescope>
# Generate tags after rechunker runs and checks the primary tag is not duplicated
# If it is, rechunk will suffix it by .1, .2, etc and put it in steps.rechunk.outputs.version
- name : Generate tags
id : generate-tags
shell : bash
run : |
# Common vars for generating tags
VERSION_TAG="${{ steps.rechunk.outputs.version }}"
UPSTREAM_TAG="${{ env.SOURCE_IMAGE_VERSION }}"
FEDORA_VERSION="${{ matrix.fedora_version }}"
SHA_SHORT="${GITHUB_SHA::7}"
BUILD_TAGS=( "${VERSION_TAG}" )
# Use latest var to check if we should tag as latest
unset LATEST
if [[ "${{ matrix.is_latest_version }}" == "true" ]] && \
[ [ "${{ matrix.is_stable_version }}" == "true" ]]; then
LATEST="1"
fi
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
# Track latest ver per PR
if [ -n "$LATEST" ]; then
BUILD_TAGS+=("pr-${{ github.event.pull_request.number }}")
fi
elif [[ ${{ github.ref_name }} == "unstable" ]]; then
# Per fedora version
BUILD_TAGS+=("${FEDORA_VERSION}-unstable")
BUILD_TAGS+=("unstable-${FEDORA_VERSION}") # flip ver to be last
# Per upstream ver
BUILD_TAGS+=("unstable-${UPSTREAM_TAG}")
if [ -n "$LATEST" ]; then
BUILD_TAGS+=("unstable")
fi
elif [[ ${{ github.ref_name }} == "testing" ]]; then
# Per fedora version
BUILD_TAGS+=("${FEDORA_VERSION}-testing")
BUILD_TAGS+=("testing-${FEDORA_VERSION}") # flip ver to be last
# Per upstream ver
BUILD_TAGS+=("testing-${UPSTREAM_TAG}")
if [ -n "$LATEST" ]; then
BUILD_TAGS+=("testing")
fi
else
BUILD_TAGS+=("${FEDORA_VERSION}")
BUILD_TAGS+=("${UPSTREAM_TAG}")
BUILD_TAGS+=("stable-${UPSTREAM_TAG}")
# Per fedora version
BUILD_TAGS+=("${FEDORA_VERSION}-stable")
BUILD_TAGS+=("stable-${FEDORA_VERSION}") # flip ver to be last
if [ -n "$LATEST" ]; then
BUILD_TAGS+=("latest" "stable")
fi
fi
echo "Generated the following build tags: "
for TAG in "${BUILD_TAGS[@]}"; do
echo "${TAG}"
done
echo "alias_tags=${BUILD_TAGS[*]}" >> $GITHUB_OUTPUT
2024-07-31 15:25:58 +00:00
# Pull oci-dir image, remove oci dir to make space, and then tag appropriately
- name : Load in podman and tag
run : |
IMAGE=$(podman pull ${{ steps.rechunk.outputs.ref }})
sudo rm -rf ${{ steps.rechunk.outputs.output }}
for tag in ${{ steps.generate-tags.outputs.alias_tags }}; do
podman tag $IMAGE ${{ env.IMAGE_NAME }}:$tag
done
# keep for secureboot check
podman tag $IMAGE rechunked-img
2023-02-09 19:08:39 +00:00
2024-07-23 02:30:15 +00:00
- name : Check Secureboot
shell : bash
run : |
set -x
if [[ ! $(command -v sbverify) || ! $(command -v curl) || ! $(command -v openssl) ]]; then
sudo apt update
sudo apt install sbsigntool curl openssl
fi
2024-07-31 15:25:58 +00:00
TMP=$(podman create rechunked-img bash)
2024-08-20 03:04:31 +00:00
podman cp $TMP:/usr/lib/modules/${{ matrix.kernel_version }}/vmlinuz .
2024-07-31 15:25:58 +00:00
podman rm $TMP
2024-07-23 02:30:15 +00:00
sbverify --list vmlinuz
curl --retry 3 -Lo kernel-sign.der https://github.com/ublue-os/kernel-cache/raw/main/certs/public_key.der
curl --retry 3 -Lo akmods.der https://github.com/ublue-os/kernel-cache/raw/main/certs/public_key_2.der
openssl x509 -in kernel-sign.der -out kernel-sign.crt
openssl x509 -in akmods.der -out akmods.crt
sbverify --cert kernel-sign.crt vmlinuz || exit 1
sbverify --cert akmods.crt vmlinuz || exit 1
2023-02-09 19:08:39 +00:00
# Workaround bug where capital letters in your GitHub username make it impossible to push to GHCR.
# https://github.com/macbre/push-to-ghcr/issues/12
- name : Lowercase Registry
id : registry_case
2023-10-30 19:30:50 +00:00
uses : ASzc/change-string-case-action@v6
2023-02-09 19:08:39 +00:00
with :
string : ${{ env.IMAGE_REGISTRY }}
# Push the image to GHCR (Image Registry)
- name : Push To GHCR
2024-05-13 20:56:45 +00:00
uses : Wandalen/wretry.action@v3.5.0
2023-02-09 19:08:39 +00:00
id : push
2023-08-29 14:31:51 +00:00
if : github.event_name != 'pull_request'
2023-02-09 19:08:39 +00:00
env :
REGISTRY_USER : ${{ github.actor }}
REGISTRY_PASSWORD : ${{ github.token }}
with :
2024-04-22 17:15:28 +00:00
action : redhat-actions/push-to-registry@v2
attempt_limit : 3
attempt_delay : 15000
with : |
2024-07-31 15:25:58 +00:00
image : ${{ env.IMAGE_NAME }}
tags : ${{ steps.generate-tags.outputs.alias_tags }}
2024-04-22 17:15:28 +00:00
registry : ${{ steps.registry_case.outputs.lowercase }}
username : ${{ env.REGISTRY_USER }}
password : ${{ env.REGISTRY_PASSWORD }}
2023-06-18 19:22:17 +00:00
2023-03-05 00:45:59 +00:00
- name : Sign container image
2024-07-15 15:06:57 +00:00
uses : EyeCantCU/cosign-action/sign@v0.3.0
2023-08-29 14:31:51 +00:00
if : github.event_name != 'pull_request'
2023-12-19 04:06:05 +00:00
with :
2023-12-24 14:46:02 +00:00
containers : ${{ env.IMAGE_NAME }}
2023-12-19 04:06:05 +00:00
registry-token : ${{ secrets.GITHUB_TOKEN }}
signing-secret : ${{ secrets.SIGNING_SECRET }}
2024-04-22 18:05:44 +00:00
tags : ${{ steps.push.outputs.outputs && fromJSON(steps.push.outputs.outputs).digest }}
2023-02-09 19:08:39 +00:00
- name : Echo outputs
2023-08-29 14:31:51 +00:00
if : github.event_name != 'pull_request'
2023-02-09 19:08:39 +00:00
run : |
2023-03-30 05:18:47 +00:00
echo "${{ toJSON(steps.push.outputs) }}"
2024-04-02 17:15:26 +00:00
build_iso :
name : build iso
needs : [ push-ghcr]
if : github.ref_name == 'testing'
# Eventually would be nice for building images in PRs
#if: ${{ endsWith(github.event.pull_request.title, '[ISO]') }}
uses : ./.github/workflows/build_iso.yml
secrets : inherit