This commit is contained in:
19
.drone.yml
19
.drone.yml
@@ -11,14 +11,17 @@ steps:
|
||||
CICD_TOKEN:
|
||||
from_secret: CICD_TOKEN
|
||||
command:
|
||||
- --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)
|
||||
- mkdir -p /kaniko/.docker
|
||||
- |
|
||||
echo "{\"auths\":{\"git.iamninja.ru\":{\"username\":\"$DOCKER_USERNAME\",\"password\":\"$CICD_TOKEN\"}}}" > /kaniko/.docker/config.json
|
||||
- >-
|
||||
/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
|
||||
|
||||
- name: deploy to server
|
||||
image: appleboy/drone-ssh
|
||||
|
||||
Reference in New Issue
Block a user