fix pipeline
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-03-28 19:30:05 +05:00
parent 73846b8fc0
commit a0ca2e7e1e

View File

@@ -3,11 +3,20 @@ type: docker
name: default
steps:
- name: build-and-push-kaniko
image: gcr.io/kaniko-project/executor:latest
- name: prepare docker config
image: alpine
environment:
DOCKER_CONFIG_JSON:
from_secret: DOCKER_CONFIG_JSON
commands:
- mkdir -p /kaniko/.docker
- echo "$DOCKER_CONFIG_JSON" > /kaniko/.docker/config.json
volumes:
- name: kaniko-config
path: /kaniko/.docker
- name: build-and-push-kaniko
image: gcr.io/kaniko-project/executor:latest
command:
- --dockerfile=Dockerfile
- --context=.
@@ -15,7 +24,9 @@ steps:
- --cache=true
- --cache-repo=git.iamninja.ru/iamninja/pomodoro_tg_bot/cache
- --skip-tls-verify
volumes:
- name: kaniko-config
path: /kaniko/.docker
- name: deploy to server
image: appleboy/drone-ssh
@@ -44,3 +55,7 @@ steps:
- docker login git.iamninja.ru -u "$DOCKER_USERNAME" -p "$CICD_TOKEN"
- docker compose pull
- docker compose up -d
volumes:
- name: kaniko-config
temp: {}