3
0
Fork 1
mirror of https://git.darmstadt.ccc.de/cda/rcda.git synced 2024-11-21 15:29:13 +01:00

.drone.yml: Added remote Deployment to https://public.litschi.xyz/w17/w17.json

This commit is contained in:
litschi 2020-12-19 14:55:24 +01:00
parent 06b0c20bbf
commit 7436231634

29
.drone.yml Normal file
View file

@ -0,0 +1,29 @@
---
kind: pipeline
type: docker
name: w17 remote Deployment
platform:
os: linux
arch: amd64
steps:
- name: build
image: nixos/nix
volumes:
- name: public
path: /public
enviroment:
commands:
- export QT_QPA_PLATFORM="offscreen"
- export XDG_RUNTIME_DIR="$(mktemp -p $(pwd) -d)/"
- rm -rf /public/*
- cp -R imgs /public/imgs
- cp w17.tmx /public
- cd /public
- nix run nixpkgs.tiled -c tiled --export-map json w17.tmx w17.json
volumes:
- name: public
host:
path: /var/www/public/w17