From c07adfb28e38d495f906763aaef76a2623ca1016 Mon Sep 17 00:00:00 2001 From: dotneft Date: Tue, 24 Aug 2021 19:06:34 +0300 Subject: [PATCH] Added Azure registry build action --- .github/workflows/Azure.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/Azure.yml b/.github/workflows/Azure.yml index 631b8b9b3..35943f4f1 100644 --- a/.github/workflows/Azure.yml +++ b/.github/workflows/Azure.yml @@ -50,9 +50,14 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Extract branch name + shell: bash + run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" + id: extract_branch + - name: ACR build id: acr - uses: ams0/acr-task-github-action@v1 + uses: ams0/acr-task-github-action@v2 with: service_principal: ${{ secrets.azure_service_principal }} service_principal_password: ${{ secrets.azure_service_principal_password }} @@ -61,4 +66,5 @@ jobs: repository: zabbix-${{ matrix.build }} image: zabbix-${{ matrix.build }} folder: ${{ matrix.build }}/${{ matrix.os }} + branch: ${{ steps.extract_branch.outputs.branch }} dockerfile: ${{ matrix.build }}/${{ matrix.os }}/Dockerfile