From eae8633a8e57e1f8e7ba681d22fec5e2f9c30152 Mon Sep 17 00:00:00 2001 From: Sergey Bahmatov Date: Fri, 28 Mar 2025 18:55:27 +0500 Subject: [PATCH] add args --- .drone.yml | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/.drone.yml b/.drone.yml index b642aeb..386eef0 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,28 +3,22 @@ type: docker name: default steps: - - name: build and push with kaniko + - name: build-and-push-kaniko image: gcr.io/kaniko-project/executor:latest environment: DOCKER_USERNAME: from_secret: DOCKER_USERNAME CICD_TOKEN: from_secret: CICD_TOKEN - settings: - registry: git.iamninja.ru - repo: git.iamninja.ru/iamninja/pomodoro_tg_bot - tags: latest - commands: - - | - /kaniko/executor \ - --dockerfile=Dockerfile \ - --context=. \ - --destination=git.iamninja.ru/iamninja/pomodoro_tg_bot:latest \ - --cache=true \ - --cache-repo=git.iamninja.ru/iamninja/pomodoro_tg_bot/cache \ - --skip-tls-verify \ - --username "$DOCKER_USERNAME" \ - --password "$CICD_TOKEN" + args: + - "--dockerfile=Dockerfile" + - "--context=." + - "--destination=git.iamninja.ru/iamninja/pomodoro_tg_bot:latest" + - "--cache=true" + - "--cache-repo=git.iamninja.ru/iamninja/pomodoro_tg_bot/cache" + - "--skip-tls-verify" + - "--username=$(DOCKER_USERNAME)" + - "--password=$(CICD_TOKEN)" - name: deploy to server image: appleboy/drone-ssh