Added build for Azure

This commit is contained in:
Alexey Pustovalov 2023-04-25 19:17:45 +09:00
parent 203e9ab8f2
commit 82b4ca042b

View File

@ -6,10 +6,9 @@ on:
- published - published
push: push:
branches: branches:
- '4.0'
- '5.0' - '5.0'
- '6.0' - '6.0'
- '6.2' - '6.4'
- 'trunk' - 'trunk'
paths: paths:
- 'Dockerfiles/**' - 'Dockerfiles/**'
@ -17,15 +16,13 @@ on:
- '!**/README.md' - '!**/README.md'
- '!Dockerfiles/*/rhel/*' - '!Dockerfiles/*/rhel/*'
- '!Dockerfiles/*/windows/*' - '!Dockerfiles/*/windows/*'
- '.github/workflows/images_build.yml' - '.github/workflows/images_build_azure.yml'
defaults: defaults:
run: run:
shell: bash shell: bash
env: env:
DOCKER_REPOSITORY: "zabbix"
LATEST_BRANCH: ${{ github.event.repository.default_branch }}
BASE_BUILD_NAME: "build-base" BASE_BUILD_NAME: "build-base"
jobs: jobs:
@ -36,7 +33,6 @@ jobs:
os: ${{ steps.os.outputs.list }} os: ${{ steps.os.outputs.list }}
database: ${{ steps.database.outputs.list }} database: ${{ steps.database.outputs.list }}
components: ${{ steps.components.outputs.list }} components: ${{ steps.components.outputs.list }}
is_default_branch: ${{ steps.branch_info.outputs.is_default_branch }}
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v3
@ -65,23 +61,6 @@ jobs:
echo "list=$component_list" >> $GITHUB_OUTPUT echo "list=$component_list" >> $GITHUB_OUTPUT
- name: Get branch info
id: branch_info
run: |
github_ref="${{ github.ref }}"
result=false
if [[ "$github_ref" == "refs/tags/"* ]]; then
github_ref=${github_ref%.*}
fi
github_ref=${github_ref##*/}
if [[ "$github_ref" == "${{ env.LATEST_BRANCH }}" ]]; then
result=true
fi
echo "is_default_branch=$result" >> $GITHUB_OUTPUT
build_base: build_base:
timeout-minutes: 30 timeout-minutes: 30
name: Build base on ${{ matrix.os }} name: Build base on ${{ matrix.os }}