aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2020-10-27 18:20:26 -0600
committerMelody Horn <melody@boringcactus.com>2020-10-27 18:20:26 -0600
commitcfc9d8d73e3c603187d76e17a4cf3d749dfd1395 (patch)
tree07c82b74438c63c313562314a7fcf0758d1f5d78
parentdca4d795198657235dad816f20ed6eb8c78e1b8d (diff)
downloadpig.observer-cfc9d8d73e3c603187d76e17a4cf3d749dfd1395.tar.gz
pig.observer-cfc9d8d73e3c603187d76e17a4cf3d749dfd1395.zip
more robust deployment
-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