From 9b2d86b8822c132f27fffad8af4d23226b187a9e Mon Sep 17 00:00:00 2001 From: Peter Kurfer Date: Sat, 10 Sep 2022 12:16:49 +0200 Subject: [PATCH] chore: add docker secret to env --- .agola/config.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.agola/config.yml b/.agola/config.yml index d9e0fdc..d508c5c 100644 --- a/.agola/config.yml +++ b/.agola/config.yml @@ -19,6 +19,9 @@ runs: runtime: containers: - image: gcr.io/kaniko-project/executor:debug + environment: + DOCKERAUTH: + from_variable: dockerauth shell: /busybox/sh steps: - restore_workspace: @@ -33,6 +36,6 @@ runs: } } EOF - - run: /kaniko/executor --destination code.icb4dc0.de/prskr/blog:latest + - run: /kaniko/executor --destination code.icb4dc0.de/prskr/blog:$AGOLA_GIT_COMMITSHA --context dir:///root/project/ --dockerfile /root/project/Dockerfile depends: - checkout code