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

Restore docker image cache #88

Merged
merged 2 commits into from
Jan 7, 2025
Merged

Restore docker image cache #88

merged 2 commits into from
Jan 7, 2025

Conversation

Deeds67
Copy link
Member

@Deeds67 Deeds67 commented Jan 7, 2025

It looks like an image is successfully cached in the build job:

Docker image saved to: /tmp/.docker-cache/digitalservicebund/a2j-kommunikationsplattform_241bc0f75e757bbc0dadc97d24c48b52ccfcdb87.tar

However in the build-and-push-image job, the cache is not found:

open /tmp/.docker-cache/digitalservicebund/a2j-kommunikationsplattform_241bc0f75e757bbc0dadc97d24c48b52ccfcdb87.tar: no such file or directory

The problem is that the cache is scoped to the job. The build-and-push-image therefore doesn't have access to the cache from the build job, so we need to restore the cache in this job to have access to it.

Copy link

sonarqubecloud bot commented Jan 7, 2025

@Deeds67 Deeds67 merged commit fa51a1c into main Jan 7, 2025
9 checks passed
@Deeds67 Deeds67 deleted the tech/cache_deps branch January 7, 2025 15:48
@Deeds67
Copy link
Member Author

Deeds67 commented Jan 7, 2025

@manuelpuchta FYI

@manuelpuchta
Copy link
Member

Thank you for the fix. 💯

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

Successfully merging this pull request may close these issues.

2 participants