Added Azure registry build action

This commit is contained in:
dotneft 2021-08-25 16:05:17 +03:00
parent 5b17d2c0d3
commit ba1197a9df

View File

@ -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}"