fix: invalidate railpack build cache when env changes

This commit is contained in:
Raushan Kumar Thakur
2026-06-06 22:47:48 +05:30
parent f886010acc
commit 7da96810a8
2 changed files with 107 additions and 8 deletions
@@ -48,14 +48,9 @@ export const getRailpackCommand = (application: ApplicationNested) => {
const buildArgs = [
"buildx",
"build",
...(cacheKey
? [
"--build-arg",
`secrets-hash=${secretsHash}`,
"--build-arg",
`cache-key=${cacheKey}`,
]
: []),
"--build-arg",
`secrets-hash=${secretsHash}`,
...(cacheKey ? ["--build-arg", `cache-key=${cacheKey}`] : []),
"--build-arg",
`BUILDKIT_SYNTAX=ghcr.io/railwayapp/railpack-frontend:v${application.railpackVersion}`,
"-f",