chore(ci): add deliver jobs to vmware connector workflow
This commit is contained in:
parent
893fa0c999
commit
8de3c7838b
|
@ -30,7 +30,6 @@ jobs:
|
||||||
needs:
|
needs:
|
||||||
- get-environment
|
- get-environment
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- package_extension: rpm
|
- package_extension: rpm
|
||||||
|
@ -54,3 +53,56 @@ jobs:
|
||||||
release: ${{ needs.get-environment.outputs.release }}
|
release: ${{ needs.get-environment.outputs.release }}
|
||||||
cache_key: ${{ github.sha }}-${{ github.run_id }}-${{ matrix.package_extension }}-${{ matrix.distrib }}
|
cache_key: ${{ github.sha }}-${{ github.run_id }}-${{ matrix.package_extension }}-${{ matrix.distrib }}
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
|
deliver-rpm:
|
||||||
|
needs:
|
||||||
|
- get-environment
|
||||||
|
- package
|
||||||
|
if: ${{ contains(fromJson('["stable", "testing", "unstable"]'), needs.get-environment.outputs.stability) }}
|
||||||
|
runs-on: [self-hosted, common]
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
distrib: [el8, el9]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout sources
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Delivery
|
||||||
|
uses: ./.github/actions/rpm-delivery
|
||||||
|
with:
|
||||||
|
module_name: connector-vmware
|
||||||
|
distrib: ${{ matrix.distrib }}
|
||||||
|
cache_key: ${{ github.sha }}-${{ github.run_id }}-rpm-${{ matrix.distrib }}
|
||||||
|
update_repo_path: ${{ secrets.UPDATE_REPO_PATH }}
|
||||||
|
cloudfront_id: ${{ secrets.CLOUDFRONT_ID }}
|
||||||
|
yum_repo_address: ${{ secrets.YUM_REPO_ADDRESS }}
|
||||||
|
yum_repo_key: ${{ secrets.YUM_REPO_KEY }}
|
||||||
|
stability: ${{ needs.get-environment.outputs.stability }}
|
||||||
|
artifactory_token: ${{ secrets.ARTIFACTORY_ACCESS_TOKEN }}
|
||||||
|
|
||||||
|
deliver-deb:
|
||||||
|
needs:
|
||||||
|
- get-environment
|
||||||
|
- package
|
||||||
|
if: ${{ contains(fromJson('["stable", "testing", "unstable"]'), needs.get-environment.outputs.stability) }}
|
||||||
|
runs-on: [self-hosted, common]
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
distrib: [bullseye]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout sources
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Delivery
|
||||||
|
uses: ./.github/actions/deb-delivery
|
||||||
|
with:
|
||||||
|
distrib: ${{ matrix.distrib }}
|
||||||
|
nexus_username: ${{ secrets.NEXUS_USERNAME }}
|
||||||
|
nexus_password: ${{ secrets.NEXUS_PASSWORD }}
|
||||||
|
cache_key: ${{ github.sha }}-${{ github.run_id }}-deb-${{ matrix.distrib }}
|
||||||
|
stability: ${{ needs.get-environment.outputs.stability }}
|
||||||
|
artifactory_token: ${{ secrets.ARTIFACTORY_ACCESS_TOKEN }}
|
||||||
|
|
|
@ -85,7 +85,7 @@ jobs:
|
||||||
- name: Upload package artifacts
|
- name: Upload package artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: packages-${{ inputs.package_extension }}
|
name: packages-${{ inputs.distrib }}
|
||||||
path: ./*.${{ inputs.package_extension }}
|
path: ./*.${{ inputs.package_extension }}
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue