Some checks reported errors
continuous-integration/drone Build encountered an error
debug
35 lines
881 B
YAML
35 lines
881 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
steps:
|
|
- name: debug registry secrets
|
|
image: alpine
|
|
commands:
|
|
- echo "Username: $${docker_username}"
|
|
- echo "Password length:" $(echo "$${docker_password}" | wc -c)
|
|
|
|
- name: build and push flappy image
|
|
image: plugins/docker
|
|
settings:
|
|
repo: rubble.se:5000/urmo/flappy
|
|
tags: latest
|
|
username:
|
|
from_secret: docker_username
|
|
password:
|
|
from_secret: docker_password
|
|
|
|
- name: deploy to server
|
|
image: appleboy/drone-ssh
|
|
settings:
|
|
host: 192.168.0.9
|
|
username: urban
|
|
port: 22
|
|
key:
|
|
from_secret: ssh_flappy_key
|
|
script:
|
|
- docker pull rubble.se:5000/urmo/flappy:latest
|
|
- docker stop flappy || true
|
|
- docker rm flappy || true
|
|
- docker run -d --name flappy --network web rubble.se:5000/urmo/flappy:latest
|