enh(ci): use upload instead of copy for promote for perl-cpan-libraries (#4808)
This commit is contained in:
parent
c5e5701321
commit
68b16107fa
|
@ -41,16 +41,20 @@ runs:
|
|||
continue
|
||||
fi
|
||||
|
||||
|
||||
echo "[DEBUG] - Build $ARCH target path."
|
||||
TARGET_PATH="rpm-plugins/${{ inputs.distrib }}/${{ inputs.stability }}/$ARCH/RPMS/${{ inputs.module }}/"
|
||||
echo "[DEBUG] - Target path: $TARGET_PATH"
|
||||
|
||||
echo "[DEBUG] - Promoting $ARCH testing artifacts to stable."
|
||||
for ARTIFACT in ${SRC_PATHS[@]}; do
|
||||
echo "[DEBUG] - Promoting $ARTIFACT to stable."
|
||||
jf rt cp $ARTIFACT $TARGET_PATH --flat=true
|
||||
echo "[DEBUG] - Downloading $ARTIFACT from TESTING."
|
||||
jf rt download $ARTIFACT --flat
|
||||
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
|
||||
|
||||
shell: bash
|
||||
|
@ -78,8 +82,15 @@ runs:
|
|||
|
||||
echo "[DEBUG] - Promoting DEB testing artifacts to stable."
|
||||
for ARTIFACT in ${SRC_PATHS[@]}; do
|
||||
echo "[DEBUG] - Promoting $ARTIFACT to stable."
|
||||
jf rt cp $ARTIFACT $TARGET_PATH --flat=true
|
||||
echo "[DEBUG] - Downloading $ARTIFACT from TESTING."
|
||||
jf rt download $ARTIFACT --flat
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue