mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 15:44:21 +02:00
enh(ci): use upload instead of copy for promote for perl-cpan-libraries (#4808)
This commit is contained in:
parent
c5e5701321
commit
68b16107fa
21
.github/actions/promote-to-stable/action.yml
vendored
21
.github/actions/promote-to-stable/action.yml
vendored
@ -41,16 +41,20 @@ runs:
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
echo "[DEBUG] - Build $ARCH target path."
|
echo "[DEBUG] - Build $ARCH target path."
|
||||||
TARGET_PATH="rpm-plugins/${{ inputs.distrib }}/${{ inputs.stability }}/$ARCH/RPMS/${{ inputs.module }}/"
|
TARGET_PATH="rpm-plugins/${{ inputs.distrib }}/${{ inputs.stability }}/$ARCH/RPMS/${{ inputs.module }}/"
|
||||||
echo "[DEBUG] - Target path: $TARGET_PATH"
|
echo "[DEBUG] - Target path: $TARGET_PATH"
|
||||||
|
|
||||||
echo "[DEBUG] - Promoting $ARCH testing artifacts to stable."
|
echo "[DEBUG] - Promoting $ARCH testing artifacts to stable."
|
||||||
for ARTIFACT in ${SRC_PATHS[@]}; do
|
for ARTIFACT in ${SRC_PATHS[@]}; do
|
||||||
echo "[DEBUG] - Promoting $ARTIFACT to stable."
|
echo "[DEBUG] - Downloading $ARTIFACT from TESTING."
|
||||||
jf rt cp $ARTIFACT $TARGET_PATH --flat=true
|
jf rt download $ARTIFACT --flat
|
||||||
done
|
done
|
||||||
|
for ARTIFACT_DL in $(dir|grep -E "*.rpm"); do
|
||||||
|
echo "[DEBUG] - Promoting (upload) $ARTIFACT_DL to stable $TARGET_PATH."
|
||||||
|
jf rt upload "$ARTIFACT_DL" "$TARGET_PATH" --flat
|
||||||
|
done
|
||||||
|
rm -f *.rpm
|
||||||
done
|
done
|
||||||
|
|
||||||
shell: bash
|
shell: bash
|
||||||
@ -78,8 +82,15 @@ runs:
|
|||||||
|
|
||||||
echo "[DEBUG] - Promoting DEB testing artifacts to stable."
|
echo "[DEBUG] - Promoting DEB testing artifacts to stable."
|
||||||
for ARTIFACT in ${SRC_PATHS[@]}; do
|
for ARTIFACT in ${SRC_PATHS[@]}; do
|
||||||
echo "[DEBUG] - Promoting $ARTIFACT to stable."
|
echo "[DEBUG] - Downloading $ARTIFACT from TESTING."
|
||||||
jf rt cp $ARTIFACT $TARGET_PATH --flat=true
|
jf rt download $ARTIFACT --flat
|
||||||
done
|
done
|
||||||
|
|
||||||
|
for ARTIFACT_DL in $(dir|grep -E "*.deb"); do
|
||||||
|
ARCH=$(echo $ARTIFACT_DL | cut -d '_' -f3 | cut -d '.' -f1)
|
||||||
|
echo "[DEBUG] - Promoting (upload) $ARTIFACT_DL to stable $TARGET_PATH."
|
||||||
|
jf rt upload "$ARTIFACT_DL" "$TARGET_PATH" --deb "${{ inputs.distrib }}/main/$ARCH"
|
||||||
|
done
|
||||||
|
rm -f *.deb
|
||||||
|
|
||||||
shell: bash
|
shell: bash
|
||||||
|
Loading…
x
Reference in New Issue
Block a user