mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-05-31 15:16:13 +02:00
Added build for Azure
This commit is contained in:
parent
404358977c
commit
0c66bf1510
16
.github/workflows/images_build_azure.yml
vendored
16
.github/workflows/images_build_azure.yml
vendored
@ -92,7 +92,7 @@ jobs:
|
|||||||
- name: Login to Azure
|
- name: Login to Azure
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
registry: ${{ secrets.azure_registry }}.azurecr.io
|
registry: ${{ secrets.AZURE_REGISTRY }}.azurecr.io
|
||||||
username: ${{ secrets.AZURE_USERNAME }}
|
username: ${{ secrets.AZURE_USERNAME }}
|
||||||
password: ${{ secrets.AZURE_PASSWORD }}
|
password: ${{ secrets.AZURE_PASSWORD }}
|
||||||
|
|
||||||
@ -100,7 +100,7 @@ jobs:
|
|||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v4
|
uses: docker/metadata-action@v4
|
||||||
with:
|
with:
|
||||||
images: ${{ secrets.azure_registry }}.azurecr.io/zabbix-${{ env.BASE_BUILD_NAME }}
|
images: ${{ secrets.AZURE_REGISTRY }}.azurecr.io/zabbix-${{ env.BASE_BUILD_NAME }}
|
||||||
tags: |
|
tags: |
|
||||||
type=sha
|
type=sha
|
||||||
flavor: |
|
flavor: |
|
||||||
@ -163,7 +163,7 @@ jobs:
|
|||||||
- name: Login to Azure
|
- name: Login to Azure
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
registry: ${{ secrets.azure_registry }}.azurecr.io
|
registry: ${{ secrets.AZURE_REGISTRY }}.azurecr.io
|
||||||
username: ${{ secrets.AZURE_USERNAME }}
|
username: ${{ secrets.AZURE_USERNAME }}
|
||||||
password: ${{ secrets.AZURE_PASSWORD }}
|
password: ${{ secrets.AZURE_PASSWORD }}
|
||||||
|
|
||||||
@ -171,7 +171,7 @@ jobs:
|
|||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v4
|
uses: docker/metadata-action@v4
|
||||||
with:
|
with:
|
||||||
images: ${{ secrets.azure_registry }}.azurecr.io/zabbix-${{ matrix.build }}
|
images: ${{ secrets.AZURE_REGISTRY }}.azurecr.io/zabbix-${{ matrix.build }}
|
||||||
tags: |
|
tags: |
|
||||||
type=sha
|
type=sha
|
||||||
flavor: |
|
flavor: |
|
||||||
@ -186,7 +186,7 @@ jobs:
|
|||||||
id: base_build
|
id: base_build
|
||||||
run: |
|
run: |
|
||||||
BASE_TAG=$(cat build-base_${{ matrix.os }})
|
BASE_TAG=$(cat build-base_${{ matrix.os }})
|
||||||
BUILD_BASE_IMAGE= ${{ secrets.azure_registry }}.azurecr.io/zabbix-build-base@${BASE_TAG}
|
BUILD_BASE_IMAGE= ${{ secrets.AZURE_REGISTRY }}.azurecr.io/zabbix-build-base@${BASE_TAG}
|
||||||
|
|
||||||
echo "base_tag=${BASE_TAG}" >> $GITHUB_OUTPUT
|
echo "base_tag=${BASE_TAG}" >> $GITHUB_OUTPUT
|
||||||
echo "base_build_image=${BUILD_BASE_IMAGE}" >> $GITHUB_OUTPUT
|
echo "base_build_image=${BUILD_BASE_IMAGE}" >> $GITHUB_OUTPUT
|
||||||
@ -248,7 +248,7 @@ jobs:
|
|||||||
- name: Login to Azure
|
- name: Login to Azure
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
registry: ${{ secrets.azure_registry }}.azurecr.io
|
registry: ${{ secrets.AZURE_REGISTRY }}.azurecr.io
|
||||||
username: ${{ secrets.AZURE_USERNAME }}
|
username: ${{ secrets.AZURE_USERNAME }}
|
||||||
password: ${{ secrets.AZURE_PASSWORD }}
|
password: ${{ secrets.AZURE_PASSWORD }}
|
||||||
|
|
||||||
@ -290,7 +290,7 @@ jobs:
|
|||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v4
|
uses: docker/metadata-action@v4
|
||||||
with:
|
with:
|
||||||
images: ${{ secrets.azure_registry }}.azurecr.io/zabbix-${{ matrix.build }}
|
images: ${{ secrets.AZURE_REGISTRY }}.azurecr.io/zabbix-${{ matrix.build }}
|
||||||
tags: |
|
tags: |
|
||||||
type=semver,pattern={{version}}
|
type=semver,pattern={{version}}
|
||||||
type=sha
|
type=sha
|
||||||
@ -308,7 +308,7 @@ jobs:
|
|||||||
if: ${{ matrix.build != 'snmptraps' }}
|
if: ${{ matrix.build != 'snmptraps' }}
|
||||||
run: |
|
run: |
|
||||||
BASE_TAG=$(cat ${{ steps.build_base_image.outputs.build_base }}_${{ matrix.os }})
|
BASE_TAG=$(cat ${{ steps.build_base_image.outputs.build_base }}_${{ matrix.os }})
|
||||||
BUILD_BASE_IMAGE=${{ secrets.azure_registry }}.azurecr.io/zabbix-${{ steps.build_base_image.outputs.build_base }}@${BASE_TAG}
|
BUILD_BASE_IMAGE=${{ secrets.AZURE_REGISTRY }}.azurecr.io/zabbix-${{ steps.build_base_image.outputs.build_base }}@${BASE_TAG}
|
||||||
|
|
||||||
echo "base_tag=${BASE_TAG}" >> $GITHUB_OUTPUT
|
echo "base_tag=${BASE_TAG}" >> $GITHUB_OUTPUT
|
||||||
echo "base_build_image=${BUILD_BASE_IMAGE}" >> $GITHUB_OUTPUT
|
echo "base_build_image=${BUILD_BASE_IMAGE}" >> $GITHUB_OUTPUT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user