From 935376df93775086a1934ebe8468ab32f3f7878d Mon Sep 17 00:00:00 2001 From: badblocks <4161747+badbl0cks@users.noreply.github.com> Date: Thu, 25 Apr 2024 22:15:47 +0000 Subject: [PATCH] Update build.yml to pass build_args to Containerfile, single source of info --- .github/workflows/build.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b8f6405..47c0881 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,7 +5,7 @@ on: branches: - main schedule: - - cron: '05 10 * * *' # 10:05am UTC everyday + - cron: '05 10 * * 0' # 10:05am UTC every Sunday push: branches: - main @@ -17,6 +17,9 @@ env: MY_IMAGE_NAME: "bazzite-gnome-custom" # the name of the image produced by this build MY_IMAGE_DESC: "My Customized Bazzite System Image" MAJOR_VERSION: "40" + SOURCE_IMAGE: "bazzite" + SOURCE_SUFFIX: "-gnome" + VERSION_SUFFIX: "stable" IMAGE_REGISTRY: "ghcr.io/${{ github.repository_owner }}" # do not edit jobs: @@ -108,6 +111,10 @@ jobs: # Postfix image name with -custom to make it a little more descriptive # Syntax: https://docs.github.com/en/actions/learn-github-actions/expressions#format image: ${{ env.MY_IMAGE_NAME }} + build_args: | + SOURCE_IMAGE=${{ env.SOURCE_IMAGE }} + SOURCE_SUFFIX=${{ env.SOURCE_SUFFIX }} + FEDORA_VERSION=${{ env.MAJOR_VERSION }}-${{ VERSION_SUFFIX }} tags: | ${{ steps.generate-tags.outputs.alias_tags }} labels: ${{ steps.meta.outputs.labels }}