dot

packages and services management
Log | Files | Refs | README

commit 906d7c92a6844da2f58b395588e5b3dcae3349c8
parent 95fb608c0d06d48a252dc881392de4f389d2404a
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sun, 20 Jan 2019 23:20:12 +0100

Merge branch 'master' of git.josuah.net:dot

Diffstat:
Aetc/git/recipes/hooks/post-receive.d/pack | 11+++++++++++
Metc/git/release/hooks/post-receive.d/release | 9++++++---
2 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/etc/git/recipes/hooks/post-receive.d/pack b/etc/git/recipes/hooks/post-receive.d/pack @@ -0,0 +1,11 @@ +#!/usr/bin/env execlineb +elgetpositionals + +if { + pipeline { git archive --format=tar } + tar -xf - -C /var/www/josuah.net/pack } +} + +cd /var/www/josuah.net/pack +redirfd -w 1 index.html +ltree-html diff --git a/etc/git/release/hooks/post-receive.d/release b/etc/git/release/hooks/post-receive.d/release @@ -5,10 +5,13 @@ importas name x define domain tar.h-o.st -if { mkdir -p /var/www/${domain}/${name} } +if { mkdir -p /var/www/${domain} } +cd /var/www/${domain} + +ifte { redirfd -w 1 index.html ltree-html } forbacktickx -n x { git tag } importas tag x -redirfd -w 1 /var/www/${domain}/${name}-${tag}.tar -git archive --prefix=${name}-${tag} --format=tar ${tag} +redirfd -w 1 ${name}-${tag}.tar +git archive --prefix ${name}-${tag} --format tar ${tag}