This commit is contained in:
24
.drone.yml
24
.drone.yml
@@ -6,22 +6,16 @@ steps:
|
||||
- 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
|
||||
DOCKER_CONFIG_JSON:
|
||||
from_secret: DOCKER_CONFIG_JSON
|
||||
command:
|
||||
- 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
|
||||
- --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