diff --git a/.sdkmanrc b/.sdkmanrc index ad28a808..d31a9537 100644 --- a/.sdkmanrc +++ b/.sdkmanrc @@ -1,3 +1,3 @@ # Enable auto-env through the sdkman_auto_env config # Add key=value pairs of SDKs to use below -java=17.0.8-graalce +java=21.0.4-graal diff --git a/src/main/java/io/seqera/tower/cli/commands/computeenvs/platforms/GoogleBatchPlatform.java b/src/main/java/io/seqera/tower/cli/commands/computeenvs/platforms/GoogleBatchPlatform.java index 0b9d9ecb..750e3664 100644 --- a/src/main/java/io/seqera/tower/cli/commands/computeenvs/platforms/GoogleBatchPlatform.java +++ b/src/main/java/io/seqera/tower/cli/commands/computeenvs/platforms/GoogleBatchPlatform.java @@ -66,10 +66,11 @@ public GoogleBatchConfig computeConfig() throws ApiException, IOException { // Advanced if (adv != null) { config - .usePrivateAddress(adv.usePrivateAddress) - .bootDiskSizeGb(adv.bootDiskSizeGb) - .headJobCpus(adv.headJobCpus) - .headJobMemoryMb(adv.headJobMemoryMb); + .usePrivateAddress(adv.usePrivateAddress) + .bootDiskSizeGb(adv.bootDiskSizeGb) + .headJobCpus(adv.headJobCpus) + .headJobMemoryMb(adv.headJobMemoryMb) + .serviceAccount(adv.serviceAccountEmail); } return config; @@ -87,5 +88,9 @@ public static class AdvancedOptions { @Option(names = {"--head-job-memory"}, description = "The number of MiB of memory reserved for the Nextflow runner job (value should be a multiple of 256MiB and from 0.5 GB to 8 GB per CPU).") public Integer headJobMemoryMb; + + @Option(names = {"--service-account-email"}, description = "The service account email address used when deploying pipeline executions with this compute environment.") + public String serviceAccountEmail; + } }