From 6734c4408ffb67841115ca17d14d879043a3343e Mon Sep 17 00:00:00 2001 From: Gabriel Arakaki Giovanini Date: Sat, 10 Dec 2022 23:36:39 +0100 Subject: feat: Initial set up for static single sign on This is a simple project to have a static site behind single sign on. --- build.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 build.yaml (limited to 'build.yaml') diff --git a/build.yaml b/build.yaml new file mode 100644 index 0000000..7b84659 --- /dev/null +++ b/build.yaml @@ -0,0 +1,27 @@ +image: alpine/latest +packages: + - rsync + - go + +sources: + - https://git.sr.ht/~gabrielgio/s4o + +secrets: + - 008c4f67-b864-47f8-9790-cd32f2ae8516 + +environment: + deploy: builds@gabrielgio.me + target: artifacts.gabrielgio.me/s4o/ + version: v0.1.0 + +tasks: + - archive: | + cd s4o + git archive \ + -o s4o-$version.tar.gz \ + --prefix=s4o-$version/ HEAD + + - deploy: | + cd s4o + sshopts="ssh -o StrictHostKeyChecking=no" + rsync --rsh="$sshopts" -rP *.tar.* $deploy:/var/www/$target -- cgit v1.2.3