From 7d863d950e1305c897776f87bbdf7f4470d1d1a3 Mon Sep 17 00:00:00 2001 From: Ramnath Vaidyanathan Date: Thu, 14 Jul 2022 09:17:38 -0700 Subject: [PATCH] feat: allow availableSecrets and build_args --- R/docker.R | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/R/docker.R b/R/docker.R index 9ed74c2c..2f6a5345 100644 --- a/R/docker.R +++ b/R/docker.R @@ -118,6 +118,7 @@ cr_deploy_docker <- function(local, predefinedAcl = "bucketOwnerFullControl", pre_steps = NULL, post_steps = NULL, + availableSecrets = NULL, ...) { result <- cr_deploy_docker_construct( local = local, @@ -133,6 +134,7 @@ cr_deploy_docker <- function(local, predefinedAcl = predefinedAcl, pre_steps = pre_steps, post_steps = post_steps, + availableSecrets = availableSecrets, ... ) @@ -180,8 +182,8 @@ cr_deploy_docker_construct <- function( predefinedAcl = "bucketOwnerFullControl", pre_steps = NULL, post_steps = NULL, + availableSecrets = NULL, ...) { - assert_that( dir.exists(local) ) @@ -237,7 +239,8 @@ cr_deploy_docker_construct <- function( ) build_yaml <- cr_build_yaml( steps = steps, - images = pushed_image + images = pushed_image, + availableSecrets = availableSecrets ) list( @@ -402,6 +405,7 @@ cr_buildstep_docker <- function( "-f", dockerfile, "--destination", paste0(the_image, ":", x), sprintf("--context=%s", build_context), + build_args, "--cache=true" ), ...