mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-05-31 15:16:13 +02:00
Added new input param for RHEL build
This commit is contained in:
parent
431bd5a623
commit
39dad999ae
16
.github/workflows/images_build_rhel.yml
vendored
16
.github/workflows/images_build_rhel.yml
vendored
@ -20,6 +20,9 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
default: false
|
default: false
|
||||||
type: boolean
|
type: boolean
|
||||||
|
trunk_version:
|
||||||
|
description: 'Specify trunk major version'
|
||||||
|
type: string
|
||||||
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
@ -139,6 +142,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
LATEST_BRANCH: ${{ env.LATEST_BRANCH }}
|
LATEST_BRANCH: ${{ env.LATEST_BRANCH }}
|
||||||
github_ref: ${{ github.ref }}
|
github_ref: ${{ github.ref }}
|
||||||
|
TRUNK_MAJOR_VERSION: ${{ inputs.trunk_version }}
|
||||||
run: |
|
run: |
|
||||||
result=false
|
result=false
|
||||||
sha_short=$(git rev-parse --short HEAD)
|
sha_short=$(git rev-parse --short HEAD)
|
||||||
@ -156,13 +160,21 @@ jobs:
|
|||||||
echo "::group::Branch metadata"
|
echo "::group::Branch metadata"
|
||||||
echo "is_default_branch - $result"
|
echo "is_default_branch - $result"
|
||||||
echo "current_branch - $github_ref"
|
echo "current_branch - $github_ref"
|
||||||
echo "secret_prefix=RHEL_${github_ref//.}"
|
if [ "${github_ref//.}" == "trunk" ] && [ ! -z "$TRUNK_MAJOR_VERSION" ]; then
|
||||||
|
echo "secret_prefix=RHEL_${TRUNK_MAJOR_VERSION//.}"
|
||||||
|
else
|
||||||
|
echo "secret_prefix=RHEL_${github_ref//.}"
|
||||||
|
fi
|
||||||
echo "sha_short - $sha_short"
|
echo "sha_short - $sha_short"
|
||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
|
|
||||||
echo "is_default_branch=$result" >> $GITHUB_OUTPUT
|
echo "is_default_branch=$result" >> $GITHUB_OUTPUT
|
||||||
echo "current_branch=$github_ref" >> $GITHUB_OUTPUT
|
echo "current_branch=$github_ref" >> $GITHUB_OUTPUT
|
||||||
echo "secret_prefix=RHEL_${github_ref//.}" >> $GITHUB_OUTPUT
|
if [ "${github_ref//.}" == "trunk" ] && [ ! -z "$TRUNK_MAJOR_VERSION" ]; then
|
||||||
|
echo "secret_prefix=RHEL_${TRUNK_MAJOR_VERSION//.}" >> $GITHUB_OUTPUT
|
||||||
|
else
|
||||||
|
echo "secret_prefix=RHEL_${github_ref//.}" >> $GITHUB_OUTPUT
|
||||||
|
fi
|
||||||
echo "sha_short=$sha_short" >> $GITHUB_OUTPUT
|
echo "sha_short=$sha_short" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Cleanup existing cache
|
- name: Cleanup existing cache
|
||||||
|
Loading…
x
Reference in New Issue
Block a user