2021-08-24 18:30:58 +02:00
|
|
|
name: Azure
|
2021-08-24 18:02:13 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types:
|
|
|
|
- published
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- '5.0'
|
|
|
|
- '5.4'
|
|
|
|
paths-ignore:
|
|
|
|
- '.env*'
|
|
|
|
- 'docker-compose*.yaml'
|
|
|
|
- '*/rhel/*'
|
|
|
|
- "**.md"
|
|
|
|
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: bash
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
timeout-minutes: 70
|
|
|
|
env:
|
|
|
|
LATEST_BRANCH: "${{ github.event.repository.default_branch }}"
|
|
|
|
DOCKER_REPOSITORY: "zabbix"
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
build:
|
|
|
|
- agent
|
|
|
|
- agent2
|
|
|
|
- java-gateway
|
|
|
|
- proxy-mysql
|
|
|
|
- proxy-sqlite3
|
|
|
|
- server-mysql
|
|
|
|
- server-pgsql
|
|
|
|
- snmptraps
|
|
|
|
- web-apache-mysql
|
|
|
|
- web-apache-pgsql
|
|
|
|
- web-nginx-mysql
|
|
|
|
- web-nginx-pgsql
|
|
|
|
os:
|
|
|
|
- alpine
|
|
|
|
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
2021-08-24 18:06:34 +02:00
|
|
|
- name: Extract branch name
|
|
|
|
shell: bash
|
|
|
|
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
|
|
|
|
id: extract_branch
|
|
|
|
|
2021-08-24 18:02:13 +02:00
|
|
|
- name: ACR build
|
|
|
|
id: acr
|
2021-08-24 18:06:34 +02:00
|
|
|
uses: ams0/acr-task-github-action@v2
|
2021-08-24 18:02:13 +02:00
|
|
|
with:
|
|
|
|
service_principal: ${{ secrets.azure_service_principal }}
|
|
|
|
service_principal_password: ${{ secrets.azure_service_principal_password }}
|
|
|
|
tenant: ${{ secrets.azure_tenant }}
|
2021-08-24 18:09:59 +02:00
|
|
|
registry: ${{ secrets.azure_registry }}
|
2021-08-24 19:15:40 +02:00
|
|
|
repository: ${{ matrix.build }}
|
|
|
|
image: zabbix-${{ matrix.build }}
|
2021-08-24 18:02:13 +02:00
|
|
|
folder: ${{ matrix.build }}/${{ matrix.os }}
|
2021-08-24 18:06:34 +02:00
|
|
|
branch: ${{ steps.extract_branch.outputs.branch }}
|
2021-08-24 19:26:55 +02:00
|
|
|
tag: ${{ matrix.build }}-${{ matrix.os }}
|
2021-08-24 18:15:45 +02:00
|
|
|
dockerfile: Dockerfile
|