Comments (4)
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.
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.
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.
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)
- `fatal: Not a valid object name` during `load git source` triggered by `on: push:` (with self-hosted runner) HOT 2
- Not all files present in final build when using `context` HOT 1
- Cache from different multi platform builds doesn't get used HOT 1
- Issue with git clone when the repo include submodules from other repositories HOT 3
- Add support for --progress CLI option
- Use a custom README file for the GitHub package rather than the main project README
- Build image from specific ref HOT 2
- Fail to export cache HOT 6
- x509: certificate signed by unknown authority when importing and exporting cache to self hosted GHE
- buildx failed with: ERROR: attestations are not supported by the current buildkitd HOT 2
- Access to main branch cache form feature branch
- ERROR: failed to solve: failed to read dockerfile: open Dockerfile: no such file or directory HOT 3
- 400 Bad Request HOT 4
- fatal: could not read Username for 'https://github.com': No such device or address HOT 1
- Path context error when copying file from nested Dockerfile HOT 1
- Local image not being recognized by workflow, using named context doesn't help HOT 3
- Error: buildx failed with: ERROR: failed to solve: failed to push can't push tagged ref by digest HOT 1
- Support multiple cache-from arguments HOT 1
- Upgrade to docker 25+ HOT 2
- using `outputs: type=local,dest=$GITHUB_WORKSPACE` with multiarch has unexpected behavior HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from build-push-action.