2023-05-19 13:32:38 +02:00
|
|
|
name: connector-vmware
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
pull_request:
|
|
|
|
paths:
|
2023-05-19 13:34:43 +02:00
|
|
|
- 'connectors/vmware/src/**'
|
|
|
|
- 'connectors/vmware/packaging/**'
|
2023-05-19 13:32:38 +02:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- develop
|
|
|
|
- master
|
|
|
|
paths:
|
2023-05-19 13:34:43 +02:00
|
|
|
- 'connectors/vmware/src/**'
|
|
|
|
- 'connectors/vmware/packaging/**'
|
2023-05-19 13:32:38 +02:00
|
|
|
tags:
|
|
|
|
- centreon-connector-vmware-*
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
get-environment:
|
|
|
|
uses: ./.github/workflows/get-environment.yml
|
|
|
|
with:
|
|
|
|
version_file: connectors/vmware/src/centreon/script/centreon_vmware.pm
|
|
|
|
|
|
|
|
package:
|
|
|
|
needs:
|
|
|
|
- get-environment
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- package_extension: rpm
|
|
|
|
image: packaging-plugins-alma8
|
|
|
|
distrib: el8
|
|
|
|
- package_extension: rpm
|
|
|
|
image: packaging-plugins-alma9
|
|
|
|
distrib: el9
|
|
|
|
- package_extension: deb
|
|
|
|
image: packaging-plugins-bullseye
|
|
|
|
distrib: bullseye
|
|
|
|
name: package ${{ matrix.distrib }}
|
|
|
|
|
|
|
|
uses: ./.github/workflows/package.yml
|
|
|
|
with:
|
2023-05-19 13:44:48 +02:00
|
|
|
nfpm_file_pattern: "connectors/vmware/packaging/centreon-plugin-virtualization-vmware-daemon.yaml"
|
2023-05-19 13:32:38 +02:00
|
|
|
distrib: ${{ matrix.distrib }}
|
|
|
|
package_extension: ${{ matrix.package_extension }}
|
|
|
|
image_name: ${{ matrix.image }}
|
|
|
|
version: ${{ needs.get-environment.outputs.version }}
|
|
|
|
release: ${{ needs.get-environment.outputs.release }}
|
|
|
|
cache_key: ${{ github.sha }}-${{ github.run_id }}-${{ matrix.package_extension }}-${{ matrix.distrib }}
|
|
|
|
secrets: inherit
|