chore: add FEDORA_MAJOR_VERSION in CI
This commit is contained in:
parent
ba590e740a
commit
bf4cbb99ea
1 changed files with 4 additions and 0 deletions
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
|
@ -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_NAME: "${{ github.event.repository.name }}" # the name of the image produced by this build, matches repo names
|
||||||
MY_IMAGE_DESC: "Azure"
|
MY_IMAGE_DESC: "Azure"
|
||||||
IMAGE_REGISTRY: "ghcr.io/${{ github.repository_owner }}" # do not edit
|
IMAGE_REGISTRY: "ghcr.io/${{ github.repository_owner }}" # do not edit
|
||||||
|
FEDORA_MAJOR_VERSION: "40"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_push:
|
build_push:
|
||||||
|
@ -53,6 +54,7 @@ jobs:
|
||||||
done
|
done
|
||||||
|
|
||||||
BUILD_TAGS+=("${TIMESTAMP}")
|
BUILD_TAGS+=("${TIMESTAMP}")
|
||||||
|
BUILD_TAGS+=("${{ env.FEDORA_MAJOR_VERSION }}")
|
||||||
BUILD_TAGS+=("latest")
|
BUILD_TAGS+=("latest")
|
||||||
|
|
||||||
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
|
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
|
||||||
|
@ -96,6 +98,8 @@ jobs:
|
||||||
# Postfix image name with -custom to make it a little more descriptive
|
# Postfix image name with -custom to make it a little more descriptive
|
||||||
# Syntax: https://docs.github.com/en/actions/learn-github-actions/expressions#format
|
# Syntax: https://docs.github.com/en/actions/learn-github-actions/expressions#format
|
||||||
image: ${{ env.MY_IMAGE_NAME }}
|
image: ${{ env.MY_IMAGE_NAME }}
|
||||||
|
build-args: |
|
||||||
|
FEDORA_MAJOR_VERSION=${{ env.FEDORA_MAJOR_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 }}
|
||||||
|
|
Loading…
Reference in a new issue