25 lines
561 B
YAML
25 lines
561 B
YAML
steps:
|
|
- name: copy_file
|
|
image: appleboy/drone-scp
|
|
environment:
|
|
DROPAREA_SSH_PASSWORD:
|
|
from_secret: ssh_key
|
|
settings:
|
|
host: droparea
|
|
username: tasi
|
|
key: $DROPAREA_SSH_PASSWORD
|
|
port: 2222
|
|
target: /home/tasi/drop/
|
|
source: bombexpert.lua
|
|
when:
|
|
- push
|
|
- name: update_catalog
|
|
image: alpine
|
|
environment:
|
|
UPDATE_SECRET:
|
|
from_secret: update_secret_key
|
|
commands:
|
|
- apk add --no-cache curl
|
|
- curl https://games.vps.teletype.hu/update?secret=$UPDATE_SECRET
|
|
|