Skip to content

Commit 796d651

Browse files
committed
fix: install kubectl with apk
Signed-off-by: Jean-Christophe Sirot <jcsirot@gmail.com>
1 parent 79e8f5c commit 796d651

File tree

1 file changed

+1
-4
lines changed
  • ci/src/main/java/io/dagger/modules/ci

1 file changed

+1
-4
lines changed

ci/src/main/java/io/dagger/modules/ci/Ci.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,7 @@ public String publish(@DefaultPath(".") Directory source, Secret awsAccessKeyId,
107107
public String deploy(@DefaultPath(".") Directory source, String image, Secret awsAccessKeyId, Secret awsSecretAccessKey)
108108
throws ExecutionException, DaggerQueryException, InterruptedException {
109109
Container deployerCtr = dag.container().from("alpine")
110-
.withExec(List.of("apk", "add", "aws-cli", "curl"))
111-
.withExec(List.of("curl", "-L", "-o", "kubectl", "https://dl.k8s.io/release/v1.31.0/bin/linux/arm64/kubectl"))
112-
.withExec(List.of("chmod", "+x", "kubectl"))
113-
.withExec(List.of("mv", "kubectl", "/usr/local/bin/"));
110+
.withExec(List.of("apk", "add", "aws-cli", "kubectl"));
114111
String appYaml = source.file("src/main/kube/app.yaml").contents().replace("${IMAGE_TAG}", image);
115112
return dag.awsCli(new AwsCliArguments().withContainer(deployerCtr))
116113
.withRegion("eu-west-1")

0 commit comments

Comments
 (0)