This commit is contained in:
24
.drone.yml
24
.drone.yml
@@ -6,22 +6,16 @@ steps:
|
|||||||
- name: build-and-push-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_CONFIG_JSON:
|
||||||
from_secret: DOCKER_USERNAME
|
from_secret: DOCKER_CONFIG_JSON
|
||||||
CICD_TOKEN:
|
|
||||||
from_secret: CICD_TOKEN
|
|
||||||
command:
|
command:
|
||||||
- mkdir -p /kaniko/.docker
|
- --dockerfile=Dockerfile
|
||||||
- |
|
- --context=.
|
||||||
echo "{\"auths\":{\"git.iamninja.ru\":{\"username\":\"$DOCKER_USERNAME\",\"password\":\"$CICD_TOKEN\"}}}" > /kaniko/.docker/config.json
|
- --destination=git.iamninja.ru/iamninja/pomodoro_tg_bot:latest
|
||||||
- >-
|
- --cache=true
|
||||||
/kaniko/executor
|
- --cache-repo=git.iamninja.ru/iamninja/pomodoro_tg_bot/cache
|
||||||
--dockerfile=Dockerfile
|
- --skip-tls-verify
|
||||||
--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
|
- name: deploy to server
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
|
|||||||
Reference in New Issue
Block a user