From ec3f49961ae7b985453d1ecd0bc5ad680ed80052 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20=C5=A0trauch?= Date: Tue, 2 Nov 2021 15:28:19 +0100 Subject: [PATCH] Let's try to use dind --- .drone.yml | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index b27ef7c..f530eaf 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,16 +4,31 @@ name: image building steps: - name: build&push - image: plugins/docker - settings: + image: docker:20.10.10-dind + environment: username: robot$library+droneci password: from_secret: repo_password repo: harbor.hq.rosti.cz/library/builder - registry: harbor.hq.rosti.cz - tags: - - 35 - - latest + tag: 35 + commands: + - echo "$password" | podman login -u $username --password-stdin harbor.hq.rosti.cz + - podman build -t $repo:$tag . + - podman tag $repo:$tag $repo:latest + - podman push $repo:$tag + - podman push $repo:latest + +# - name: build&push +# image: plugins/docker +# settings: +# username: robot$library+droneci +# password: +# from_secret: repo_password +# repo: harbor.hq.rosti.cz/library/builder +# registry: harbor.hq.rosti.cz +# tags: +# - 35 +# - latest # - name: build&push # image: harbor.hq.rosti.cz/library/builder:35