Skip to content
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

Disable cache in github workflow (Github action self-hosted runner) #1641

Open
shsotoudegan opened this issue May 3, 2024 · 0 comments
Open

Comments

@shsotoudegan
Copy link

shsotoudegan commented May 3, 2024

I can't disable cache of cog push command.
I need to disable cache for some debug purposes and RUN --no-cache don't work.
for example I used cog.yaml in this way for disable cache:

build:
    run:
        - --no-cache command

and I get this error:
ERROR: failed to solve: dockerfile parse error on line 53: unknown flag: no-cache

how to disable cache in cog push process specifically on self-hosted github runner?

I used some other solutions. for example set export DOCKER_BUILDKIT=1 .
but i can't use ARG CACHEBUST=1 for disable docker cache.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant