Merge pull request #4557 from rnkp755/fix/env-update-issue

fix: invalidate railpack build cache when env changes
(cherry picked from commit a1230098c9)
This commit is contained in:
Mauricio Siu
2026-08-05 23:48:04 -06:00
committed by Mauricio Siu
parent 13b897c01d
commit b7fdbd4704
2 changed files with 107 additions and 8 deletions
@@ -53,14 +53,9 @@ export const getRailpackCommand = (application: ApplicationNested) => {
"build",
"--builder",
builderName,
...(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",