Skip to content

Commit

Permalink
Fix staging Dockerfile-based templates on release (#1933)
Browse files Browse the repository at this point in the history
Signed-off-by: Jeffrey Kinard <[email protected]>
  • Loading branch information
Polber authored Oct 14, 2024
1 parent cca2a24 commit 7e44934
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,6 @@ public void execute() throws MojoExecutionException {
stagePrefix = stagePrefix.substring(0, stagePrefix.length() - 1);
}

if (beamVersion == null || beamVersion.isEmpty()) {
beamVersion = project.getProperties().getProperty("beam-python.version");
}

try {
URLClassLoader loader = buildClassloader();

Expand Down Expand Up @@ -385,6 +381,10 @@ protected String stageFlexTemplate(
generateFlexTemplateImagePath(
containerName, projectId, artifactRegion, artifactRegistry, stagePrefix));

if (beamVersion == null || beamVersion.isEmpty()) {
beamVersion = project.getProperties().getProperty("beam-python.version");
}

String currentTemplateName = definition.getTemplateAnnotation().name();
TemplateSpecsGenerator generator = new TemplateSpecsGenerator();

Expand Down

0 comments on commit 7e44934

Please sign in to comment.