From d9cecbe16376e283689fa0cedf57c22a43ffb093 Mon Sep 17 00:00:00 2001 From: shanmite Date: Sat, 29 Oct 2022 20:37:09 +0800 Subject: [PATCH] ci: push shanmite/pkg-arm64 --- .github/workflows/pkg.yml | 1 - script/build/pkg.sh | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pkg.yml b/.github/workflows/pkg.yml index 15e9f28..cac0177 100644 --- a/.github/workflows/pkg.yml +++ b/.github/workflows/pkg.yml @@ -61,7 +61,6 @@ jobs: uses: actions/checkout@v2 - name: "Pkg this" run: | - sudo podman run --rm --privileged multiarch/qemu-user-static --reset -p yes npm run pkg arm - name: "Upload to artifact" uses: actions/upload-artifact@v2 diff --git a/script/build/pkg.sh b/script/build/pkg.sh index 9c53573..949b8cc 100755 --- a/script/build/pkg.sh +++ b/script/build/pkg.sh @@ -26,8 +26,8 @@ fi mkdir -p $TARGET_DIR if [[ "$1" == *"arm"* ]]; then - podman build -f Dockerfile.pkg-arm64 -t pkg-arm64 - podman run -it --rm -v ${PWD}/dist:/root/lottery/dist pkg-arm64 + sudo podman run --rm --privileged multiarch/qemu-user-static --reset -p yes + podman run -it --rm -v ${PWD}/dist:/root/lottery/dist shanmite/pkg-arm64 elif [[ "$1" == *"x64"* ]]; then OUTFILE="$TARGET_DIR/lottery-auto-script-$1" npx pkg -t "$1" -o $OUTFILE .