GithubHelp home page GithubHelp logo

Comments (4)

crazy-max avatar crazy-max commented on June 3, 2024

Why would you want to load the image and extract the tarball where you could just output files from your build using the local exporter: https://docs.docker.com/build/exporters/local-tar/?

You would not need the Extract binaries from Docker image step or archive/load the whole image.

Just add an extra scratch stage in https://github.com/yao-pkg/pkg-fetch/blob/main/Dockerfile.linuxcross like:

FROM ubuntu:bionic AS build
...
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 /

Then in the workflow:

      - name: Build
        uses: docker/build-push-action@v5
        with:
          build-args: |
            TARGET_TOOLCHAIN_ARCH=aarch64
            PKG_FETCH_OPTION_a=arm64
            PKG_FETCH_OPTION_n=node${{ matrix.target-node }}
          context: .
          file: ./Dockerfile.linuxcross
          platforms: linux/amd64
          outputs: root/pkg-fetch

from build-push-action.

robertsLando avatar robertsLando commented on June 3, 2024

Reason is that I never thought about your clever solution yet :) I'm tring to use the docker cp command now but I will give that a try. Anyway I dunno why previous code used to work for long time and now stopped working with that error

from build-push-action.

crazy-max avatar crazy-max commented on June 3, 2024

Anyway I dunno why previous code used to work for long time and now stopped working with that error

Best guess is not enough disk space on the runner

from build-push-action.

robertsLando avatar robertsLando commented on June 3, 2024

Ok so thanks again for the suggestion, it's much cleaner then the others I thought :) Can close this

from build-push-action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.