-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(git): move centreon-gorgone to centreon-collect repository [23.…
…10] (#1533)
- Loading branch information
Showing
260 changed files
with
51,268 additions
and
97 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
* @centreon/owners-cpp | ||
* @centreon/owners-cpp | ||
|
||
.github/** @centreon/owners-pipelines | ||
packaging/** @centreon/owners-pipelines | ||
selinux/** @centreon/owners-pipelines | ||
.github/** @centreon/owners-pipelines | ||
packaging/** @centreon/owners-pipelines | ||
selinux/** @centreon/owners-pipelines | ||
|
||
tests/** @centreon/owners-robot-e2e | ||
tests/** @centreon/owners-robot-e2e | ||
|
||
gorgone/ @centreon/owners-perl | ||
gorgone/docs/ @centreon/owners-doc | ||
|
||
gorgone/tests/robot/config/ @centreon/owners-perl | ||
*.pm @centreon/owners-perl | ||
*.pl @centreon/owners-perl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
name: "deb-delivery" | ||
description: "Package deb packages" | ||
inputs: | ||
module_name: | ||
description: "The package module name" | ||
required: true | ||
distrib: | ||
description: "The distribution used for packaging" | ||
required: true | ||
version: | ||
description: "Centreon packaged major version" | ||
required: true | ||
cache_key: | ||
description: "The cached package key" | ||
required: true | ||
stability: | ||
description: "The package stability (stable, testing, unstable)" | ||
required: true | ||
artifactory_token: | ||
description: "Artifactory token" | ||
required: true | ||
release_type: | ||
description: "Type of release (hotfix, release)" | ||
required: true | ||
release_cloud: | ||
description: "Release context (cloud or not cloud)" | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Use cache DEB files | ||
uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | ||
with: | ||
path: ./*.deb | ||
key: ${{ inputs.cache_key }} | ||
fail-on-cache-miss: true | ||
|
||
- uses: jfrog/setup-jfrog-cli@0f30b43d62ccad81fba40748d2c671c4665b2d27 # v3.5.3 | ||
env: | ||
JF_URL: https://centreon.jfrog.io | ||
JF_ACCESS_TOKEN: ${{ inputs.artifactory_token }} | ||
|
||
- name: Publish DEBs | ||
run: | | ||
FILES="*.deb" | ||
# DEBUG | ||
echo "[DEBUG] - Version: ${{ inputs.version }}" | ||
echo "[DEBUG] - Distrib: ${{ inputs.distrib }}" | ||
echo "[DEBUG] - module_name: ${{ inputs.module_name }}" | ||
echo "[DEBUG] - release_cloud: ${{ inputs.release_cloud }}" | ||
echo "[DEBUG] - release_type: ${{ inputs.release_type }}" | ||
echo "[DEBUG] - stability: ${{ inputs.stability }}" | ||
# Make sure all required inputs are NOT empty | ||
if [[ -z "${{ inputs.module_name }}" || -z "${{ inputs.distrib }}" || -z ${{ inputs.stability }} || -z ${{ inputs.version }} || -z ${{ inputs.release_cloud }} || -z ${{ inputs.release_type }} ]]; then | ||
echo "Some mandatory inputs are empty, please check the logs." | ||
exit 1 | ||
fi | ||
# Handle either standard debian or ubuntu repository path | ||
if [[ "${{ inputs.distrib }}" == "jammy" ]]; then | ||
ROOT_REPO_PATH="ubuntu-standard-${{ inputs.version }}-${{ inputs.stability }}" | ||
else | ||
ROOT_REPO_PATH="apt-standard-${{ inputs.version }}-${{ inputs.stability }}" | ||
fi | ||
for FILE in $FILES; do | ||
echo "[DEBUG] - File: $FILE" | ||
VERSION=${{ inputs.version }} | ||
DISTRIB=$(echo $FILE | cut -d '_' -f2 | cut -d '-' -f2) | ||
ARCH=$(echo $FILE | cut -d '_' -f3 | cut -d '.' -f1) | ||
echo "[DEBUG] - Version: $VERSION" | ||
jf rt upload "$FILE" "$ROOT_REPO_PATH/pool/${{ inputs.module_name }}/" --deb "${{ inputs.distrib }}/main/$ARCH" --flat | ||
done | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.