From a7aa3468cb48d1dea190937334ab20cda1367ac1 Mon Sep 17 00:00:00 2001 From: Daniel Lando Date: Fri, 2 Feb 2024 08:49:42 +0100 Subject: [PATCH] fix: add ls --- .github/workflows/build-linux.yml | 2 ++ Dockerfile.linuxcross | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index 4c394438..3999524e 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -33,6 +33,7 @@ jobs: - name: Check if binary is compiled id: check_file run: | + ls -l dist (test -f dist/*.sha256sum && echo "EXISTS=true" >> $GITHUB_OUTPUT) || echo "EXISTS=false" >> $GITHUB_OUTPUT - uses: actions/upload-artifact@v4 @@ -71,6 +72,7 @@ jobs: - name: Check if binary is compiled id: check_file run: | + ls -l dist (test -f dist/*.sha256sum && echo "EXISTS=true" >> $GITHUB_OUTPUT) || echo "EXISTS=false" >> $GITHUB_OUTPUT - uses: actions/upload-artifact@v4 diff --git a/Dockerfile.linuxcross b/Dockerfile.linuxcross index 1443639c..bc5123fa 100644 --- a/Dockerfile.linuxcross +++ b/Dockerfile.linuxcross @@ -1,4 +1,4 @@ -FROM ubuntu:bionic +FROM ubuntu:bionic AS build USER root:root WORKDIR /root/pkg-fetch/ @@ -40,3 +40,6 @@ ARG PKG_FETCH_OPTION_a ARG PKG_FETCH_OPTION_n RUN yarn start --arch $PKG_FETCH_OPTION_a --node-range $PKG_FETCH_OPTION_n --output dist + +FROM scratch +COPY --from=build /root/pkg-fetch/dist /