This commit is contained in:
26
.drone.yml
26
.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
|
||||
|
||||
Reference in New Issue
Block a user