Skip to content

Commit

Permalink
gitac/undock.sh $pkgs/$one-$ver-$arch.tar.gz
Browse files Browse the repository at this point in the history
  • Loading branch information
huapox committed Dec 3, 2024
1 parent 71e9490 commit 95972d6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/undock.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ set +e
logfile=$cur/oneBuild-syncer.log
dpkg=$cur/.ws/down_pkg
dbin=$cur/.ws/down_bin; mkdir -p $dpkg $dbin
vers=dpkg=$cur/../../compile/src/vers.txt
function print_time_cost(){
local item_name=$1
local begin_time=$2
Expand Down Expand Up @@ -55,12 +56,16 @@ function doUndock(){
# docker-x11base/.github/workflows/.ws/rootfs/linux_amd64
# docker-x11base/.github/workflows/.ws/rootfs/linux_amd64/rootfs/files1/usr/local/static/3rd
# TODO: echo $one|$ver >>rootfs/files1/usr/local/static/vers.txt
vers2=$(cat $vers |awk '{print $1"|"$2}')
archs=(amd64 arm64 armv7); pkgs=$cur/.ws/pkgs; mkdir -p $pkgs
for arch in ${archs[@]}; do
echo "arch: $arch";
files1=$cur/.ws/rootfs/linux_$arch/rootfs/files1; cd $files1
ls $files1/usr/local/static/|while read one; do
tar -zcf $pkgs/$one-$arch.tar.gz usr/local/static/$one
local ver=latest
match01=$(echo $vers2 |grep "$one|")
test ! -z "$match01" && ver=$(echo $vers2 |grep "$one|" |cut -d'|' -f2)
tar -zcf $pkgs/$one-$ver-$arch.tar.gz usr/local/static/$one
done
ls -lhS $pkgs/*.tar.gz
done;
Expand Down

0 comments on commit 95972d6

Please sign in to comment.