4
0
Files
bombexpert/.woodpecker.yml
Zsolt Tasnadi ae7a8921a0
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
pipeline fix
2025-12-06 15:52:41 +01:00

40 lines
1.0 KiB
YAML

environment:
GAME_NAME: bombexpert
GAME_LANG: lua
steps:
- name: build
image: rastasi/tic80pro:latest
environment:
GAME_NAME: bombexpert
commands:
- tic80 -build $GAME_NAME.$GAME_LANG $GAME_NAME.tic
- name: artifact
image: alpine
environment:
DROPAREA_HOST: vps.teletype.hu
DROPAREA_PORT: 2223
DROPAREA_TARGET_PATH: /home/drop
DROPAREA_USER: drop
DROPAREA_SSH_PASSWORD:
from_secret: droparea_ssh_password
commands:
- apk add --no-cache openssh-client sshpass
- mkdir -p /root/.ssh
- sshpass -p $DROPAREA_SSH_PASSWORD \
scp -o StrictHostKeyChecking=no \
-P $DROPAREA_PORT \
$GAME_NAME.$GAME_LANG $GAME_NAME.tic \
$DROPAREA_USER@$DROPAREA_HOST:$DROPAREA_TARGET_PATH
- name: update
image: alpine
environment:
UPDATE_SERVER: https://games.vps.teletype.hu
UPDATE_SECRET:
from_secret: update_secret_key
commands:
- apk add --no-cache curl
- curl "$UPDATE_SERVER/update?secret=$UPDATE_SECRET"