Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Is it possible to build without pushing?#1163

Answeredbycrazy-max
GersonTrj asked this question inQ&A
Discussion options

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?

You must be logged in to vote

You can use thecacheonly exporter:https://docs.docker.com/build/exporters/#cache-only-export

      -name:Build and pushuses:docker/build-push-action@v6with:outputs:type=cacheonlytags:user/app:latest

Replies: 1 comment 3 replies

Comment options

You can use thecacheonly exporter:https://docs.docker.com/build/exporters/#cache-only-export

      -name:Build and pushuses:docker/build-push-action@v6with:outputs:type=cacheonlytags:user/app:latest
You must be logged in to vote
3 replies
@GersonTrj
Comment options

is this equivalent to?

no-cache | Bool | Do not use cache when building the image (default false)-- | -- | --
@crazy-max
Comment options

Nono-cache is same as--no-cache flag:https://docs.docker.com/reference/cli/docker/buildx/build/#options

Do not use cache when building the image

@soryy708
Comment options

What if I want to use--cache-to and--cache-from? Aren't those incompatible with--no-cache?

Answer selected byGersonTrj
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
3 participants
@GersonTrj@crazy-max@soryy708

[8]ページ先頭

©2009-2025 Movatter.jp