chore: add FEDORA_MAJOR_VERSION in CI

This commit is contained in:
Bastien Riviere 2024-05-03 20:39:19 +02:00
parent ba590e740a
commit bf4cbb99ea
Signed by: babariviere
GPG key ID: 4E5F0839249F162E

View file

@ -17,6 +17,7 @@ env:
MY_IMAGE_NAME: "${{ github.event.repository.name }}" # the name of the image produced by this build, matches repo names
MY_IMAGE_DESC: "Azure"
IMAGE_REGISTRY: "ghcr.io/${{ github.repository_owner }}" # do not edit
FEDORA_MAJOR_VERSION: "40"
jobs:
build_push:
@ -53,6 +54,7 @@ jobs:
done
BUILD_TAGS+=("${TIMESTAMP}")
BUILD_TAGS+=("${{ env.FEDORA_MAJOR_VERSION }}")
BUILD_TAGS+=("latest")
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
@ -96,6 +98,8 @@ 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: |
FEDORA_MAJOR_VERSION=${{ env.FEDORA_MAJOR_VERSION }}
tags: |
${{ steps.generate-tags.outputs.alias_tags }}
labels: ${{ steps.meta.outputs.labels }}