mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-01-29 00:39:04 +01:00
Added Azure registry build action
This commit is contained in:
parent
5b17d2c0d3
commit
ba1197a9df
6
.github/workflows/Azure.yml
vendored
6
.github/workflows/Azure.yml
vendored
@ -76,16 +76,16 @@ jobs:
|
||||
|
||||
IMAGE_NAME="${{ secrets.azure_registry }}.azurecr.io/${{ matrix.os }}/zabbix-${{ matrix.build }}"
|
||||
GIT_BRANCH="${GITHUB_REF##*/}"
|
||||
GIT_BRANCH=`expr "${GIT_BRANCH}" : '\([0-9]*\.[0-9]*\).*'`
|
||||
|
||||
echo "::debug::Branch - ${GIT_BRANCH}"
|
||||
|
||||
if [ "${GIT_BRANCH}" == "trunk" ]; then
|
||||
TAGS_ARRAY+=("$IMAGE_NAME:trunk")
|
||||
else
|
||||
GIT_BRANCH=`expr "${GIT_BRANCH}" : '\([0-9]*\.[0-9]*\).*'`
|
||||
TAGS_ARRAY+=("$IMAGE_NAME:v${GIT_BRANCH}")
|
||||
fi
|
||||
|
||||
echo "::debug::Branch - ${GIT_BRANCH}"
|
||||
|
||||
TAGS=$(printf -- "%s, " "${TAGS_ARRAY[@]}")
|
||||
|
||||
echo "::debug::Tags - ${TAGS}"
|
||||
|
Loading…
Reference in New Issue
Block a user