-
I am using this action in a reusable workflow and I would like to give the other devs the option to build the image without pushing it to check for build errors using some sort of push boolean variable, how could I do this? |
Beta Was this translation helpful? Give feedback.
Answered by
crazy-max
Jun 28, 2024
Replies: 1 comment 2 replies
-
You can use the -
name: Build and push
uses: docker/build-push-action@v6
with:
outputs: type=cacheonly
tags: user/app:latest |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
GersonTrj
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use the
cacheonly
exporter: https://docs.docker.com/build/exporters/#cache-only-export