~boringcactus/pig.observer

cfc9d8d73e3c603187d76e17a4cf3d749dfd1395 — Melody Horn 1 year, 9 months ago dca4d79
more robust deployment
2 files changed, 16 insertions(+), 4 deletions(-)

A .build.yml
D Dockerfile
A .build.yml => .build.yml +16 -0
@@ 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/*

D Dockerfile => Dockerfile +0 -4
@@ 1,4 0,0 @@
FROM nginx:alpine

COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY dist /usr/share/nginx/html