aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.build.yml16
-rw-r--r--Dockerfile4
2 files changed, 16 insertions, 4 deletions
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