centreon-plugins/.github/actions/deb-delivery/action.yml

41 lines
1.0 KiB
YAML

name: "deb-delivery"
description: "Deliver DEB packages"
inputs:
distrib:
description: "The distribution used for packaging"
required: true
nexus_username:
description: The nexus username
required: true
nexus_password:
description: The nexus password
required: true
cache_key:
description: "The cached package key"
required: true
stability:
description: "The package stability (stable, testing, unstable)"
required: true
artifactory_token:
description: "token for artifactory"
required: true
runs:
using: "composite"
steps:
- name: Use cache DEB files
uses: actions/cache@v3
with:
path: ./*.deb
key: ${{ inputs.cache_key }}
- uses: jfrog/setup-jfrog-cli@v3
env:
JF_URL: https://centreon.jfrog.io
JF_ACCESS_TOKEN: ${{ inputs.artifactory_token }}
- name: Publish DEBs to artifactory
run: |
jf rt upload "*.deb" "apt-plugins-${{ inputs.stability }}/pool/" --deb "${{ inputs.distrib }}/main/all"
shell: bash