New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use artifacts in build-push-action? #592
Comments
@KEGustafsson If you could post a repro (workflow + simple dockerfile + logs) that would help to understand the issue. Thanks. |
@crazy-max Here is one example what I'm trying to do So, script download artifact to temp and then run build-push. Dockerfile ADD import folder to docker, but content is missing. Just downloaded artifact is not there. Replacing GH action build-push to
|
Looks like you're using the Git context. As explained in the README:
So use the Path context instead: - name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: ./docker/Dockerfile
platforms: linux/amd64,linux/arm/v7,linux/arm64
push: true
images: <user>/<repo>
tags: latest |
Also this input doesn't exist: images: <user>/<repo> |
Thanks! Working perfectly!
Original was removed and replaced with this... |
I tried to figuring out how to use artifacts in build-push-action, but didn't find the info?
I can upload and download artifacts in GH action. I can see that artifacts are in correct folder, but after starting
docker/build-push-action@v2
action and doingADD "folder"
in docker buildDockerfile
, folder is not containing just downloaded artifacts.It seems that
docker buildx build
is loading git source, but not the one I have checked out.How this should be done?
The text was updated successfully, but these errors were encountered: