miom.space/.drone.yml
teutat3s d10c6d5199
All checks were successful
continuous-integration/drone/push Build is passing
ci: debugging error from docker login
Error: Cannot perform an interactive login from a non TTY device
2023-02-27 18:12:08 +01:00

61 lines
1.3 KiB
YAML

kind: pipeline
type: docker
name: check-build
steps:
- name: check
image: denoland/deno:alpine-1.30.3
commands:
- ./build.sh
when:
event:
- push
- name: build docker image
image: plugins/docker
settings:
registry: registry.greenbaum.cloud
repo: registry.greenbaum.cloud/pub_solar/miom.space
tags:
- latest
- ${DRONE_TAG}
username:
from_secret: docker_username
password:
from_secret: docker_password
when:
event:
- tag
---
kind: pipeline
type: docker
name: deploy
steps:
- name: deploy
image: registry.greenbaum.cloud/library/triton-docker
environment:
DOCKER_CONFIG:
from_secret: docker_config
TRITON_SSH_KEY:
from_secret: triton_ssh_key
TRITON_ACCOUNT:
from_secret: triton_account
TRITON_URL: https://lev-1.api.greenbaum.cloud
TRITON_KEY_ID: 59:9f:5a:6f:c4:e2:3b:32:7f:13:1f:de:b7:59:80:85
PROJECT_NAME: miomspace
commands:
- env
- mkdir -p /home/node/.ssh .config/docker
- echo -e "$TRITON_SSH_KEY" > /home/node/.ssh/id_rsa
- echo -e "$DOCKER_CONFIG" > .config/docker/config.json
- /usr/local/bin/docker-entrypoint.sh ./deploy.sh $DRONE_TAG
trigger:
event:
- promote
- rollback
target:
- production