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