From 743623163450e38b9a80ea1152544a211c32744f Mon Sep 17 00:00:00 2001 From: litschi Date: Sat, 19 Dec 2020 14:55:24 +0100 Subject: [PATCH] .drone.yml: Added remote Deployment to https://public.litschi.xyz/w17/w17.json --- .drone.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..8840549 --- /dev/null +++ b/.drone.yml @@ -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 \ No newline at end of file