add args
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2025-03-28 18:55:27 +05:00
parent 7b36c2a46c
commit eae8633a8e

View File

@@ -3,28 +3,22 @@ type: docker
name: default name: default
steps: steps:
- name: build and push with kaniko - name: build-and-push-kaniko
image: gcr.io/kaniko-project/executor:latest image: gcr.io/kaniko-project/executor:latest
environment: environment:
DOCKER_USERNAME: DOCKER_USERNAME:
from_secret: DOCKER_USERNAME from_secret: DOCKER_USERNAME
CICD_TOKEN: CICD_TOKEN:
from_secret: CICD_TOKEN from_secret: CICD_TOKEN
settings: args:
registry: git.iamninja.ru - "--dockerfile=Dockerfile"
repo: git.iamninja.ru/iamninja/pomodoro_tg_bot - "--context=."
tags: latest - "--destination=git.iamninja.ru/iamninja/pomodoro_tg_bot:latest"
commands: - "--cache=true"
- | - "--cache-repo=git.iamninja.ru/iamninja/pomodoro_tg_bot/cache"
/kaniko/executor \ - "--skip-tls-verify"
--dockerfile=Dockerfile \ - "--username=$(DOCKER_USERNAME)"
--context=. \ - "--password=$(CICD_TOKEN)"
--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 - name: deploy to server
image: appleboy/drone-ssh image: appleboy/drone-ssh