Skip to content

Commit eca190e

Browse files
authored
fix(synthetic-chain): latest builds from multi-stage target (#289)
1 parent 1048894 commit eca190e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.changeset/silly-seas-read.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@agoric/synthetic-chain': patch
3+
---
4+
5+
build latest from the multi-stage build target

packages/synthetic-chain/src/cli/dockerfileGen.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -236,14 +236,9 @@ ENTRYPOINT ./run_test.sh ${path}
236236
* The last target in the file, for untargeted `docker build`
237237
*/
238238
LAST(lastProposal: ProposalInfo) {
239-
// Assumes the 'use' image is built and tagged.
240-
// This isn't necessary for a multi-stage build, but without it CI
241-
// rebuilds the last "use" image during the "default" image step
242-
// Some background: https://github.com/moby/moby/issues/34715
243-
const useImage = imageNameForProposal(lastProposal, 'use').name;
244239
return `
245240
## LAST
246-
FROM ${useImage} as latest
241+
FROM use-${lastProposal.proposalName} as latest
247242
`;
248243
},
249244
};

0 commit comments

Comments
 (0)