From cfc9d8d73e3c603187d76e17a4cf3d749dfd1395 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Tue, 27 Oct 2020 18:20:26 -0600 Subject: more robust deployment --- .build.yml | 16 ++++++++++++++++ Dockerfile | 4 ---- 2 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 .build.yml delete mode 100644 Dockerfile diff --git a/.build.yml b/.build.yml new file mode 100644 index 0000000..83316eb --- /dev/null +++ b/.build.yml @@ -0,0 +1,16 @@ +image: alpine/latest +packages: + - rsync +sources: + - https://git.sr.ht/~boringcactus/pig.observer +secrets: + - b5cb9b2b-1461-4486-95e1-886451674a89 +tasks: + - upload: | + upload-to() { + dest=$1 + shift + rsync --rsh="ssh -o StrictHostKeyChecking=no" -rlt8hP --del $@ services@boringcactus.com:$dest + } + cd pig.observer + upload-to /var/www/html/pig.observer/ dist/* diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index d509531..0000000 --- a/Dockerfile +++ /dev/null @@ -1,4 +0,0 @@ -FROM nginx:alpine - -COPY nginx.conf /etc/nginx/conf.d/default.conf -COPY dist /usr/share/nginx/html -- cgit v1.2.3