Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
🐳 chore(build): add image data about the latest and stable version
Browse files Browse the repository at this point in the history
It works similarly to builds.yml from uBlue-OS - it adds the timestamp and latest tag only to the latest and stable system image compilations.
  • Loading branch information
c0deplayer committed Oct 1, 2023
1 parent fa34bea commit 02b7816
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ jobs:
echo "IMAGE_DESCRIPTION=$(yq '.description' ./config/${{ matrix.recipe }})" >> $GITHUB_ENV
echo "IMAGE_MAJOR_VERSION=$(yq '.image-version' ./config/${{ matrix.recipe }})" >> $GITHUB_ENV
echo "BASE_IMAGE_URL=$(yq '.base-image' ./config/${{ matrix.recipe }})" >> $GITHUB_ENV
echo "IS_LATEST_VERSION=$(yq '.is_latest_version' ./config/${{ matrix.recipe }})" >> $GITHUB_ENV
echo "IS_STABLE_VERSION=$(yq '.is_stable_version' ./config/${{ matrix.recipe }})" >> $GITHUB_ENV
- name: Get current version
id: labels
Expand Down Expand Up @@ -83,8 +85,11 @@ jobs:
BUILD_TAGS=("${MAJOR_VERSION}" "${MAJOR_VERSION:+$MAJOR_VERSION-}${TIMESTAMP}")
# --
BUILD_TAGS+=("${TIMESTAMP}")
BUILD_TAGS+=("latest")
if [[ "${{ env.IS_LATEST_VERSION }}" == "true" ]] && \
[[ "${{ env.IS_STABLE_VERSION }}" == "true" ]]; then
BUILD_TAGS+=("${TIMESTAMP}")
BUILD_TAGS+=("latest")
fi
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
echo "Generated the following commit tags: "
Expand Down
2 changes: 2 additions & 0 deletions config/silverflow-nvidia-39.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: silverflow-nvidia
description: My personal OS image (based on silverblue-nvidia from uBlue OS)
base-image: ghcr.io/ublue-os/silverblue-nvidia
image-version: 39
is_latest_version: true
is_stable_version: false

modules:
- from-file: common-modules-39.yml
2 changes: 2 additions & 0 deletions config/silverflow-nvidia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: silverflow-nvidia
description: My personal OS image (based on silverblue-nvidia from uBlue OS)
base-image: ghcr.io/ublue-os/silverblue-nvidia
image-version: 38
is_latest_version: true
is_stable_version: true

modules:
- from-file: common-modules.yml

0 comments on commit 02b7816

Please sign in to comment.