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