major_version doesn't need to be ran in bash as the value remains unchanged
This commit is contained in:
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@@ -35,7 +35,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "date=$(date +%Y%m%d)" >> $GITHUB_OUTPUT
|
echo "date=$(date +%Y%m%d)" >> $GITHUB_OUTPUT
|
||||||
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||||
echo "release=${{ matrix.fedora_major_version }}" >> $GITHUB_OUTPUT
|
|
||||||
alias_tags=()
|
alias_tags=()
|
||||||
if [[ "${{ matrix.is_latest }}" == "true" ]]; then
|
if [[ "${{ matrix.is_latest }}" == "true" ]]; then
|
||||||
alias_tags+=("latest")
|
alias_tags+=("latest")
|
||||||
@@ -55,9 +55,9 @@ jobs:
|
|||||||
image: ${{ env.IMAGE_NAME }}
|
image: ${{ env.IMAGE_NAME }}
|
||||||
tags: |
|
tags: |
|
||||||
${{ steps.generate-tags.outputs.alias_tags }}
|
${{ steps.generate-tags.outputs.alias_tags }}
|
||||||
${{ steps.generate-tags.outputs.release }}
|
|
||||||
${{ steps.generate-tags.outputs.date }}
|
${{ steps.generate-tags.outputs.date }}
|
||||||
${{ steps.generate-tags.outputs.sha_short }}
|
${{ steps.generate-tags.outputs.sha_short }}
|
||||||
|
${{ matrix.major_version }}
|
||||||
build-args: |
|
build-args: |
|
||||||
FEDORA_MAJOR_VERSION=${{ matrix.major_version }}
|
FEDORA_MAJOR_VERSION=${{ matrix.major_version }}
|
||||||
oci: true
|
oci: true
|
||||||
|
|||||||
Reference in New Issue
Block a user