aboutsummaryrefslogtreecommitdiff
path: root/apks/artifacts
diff options
context:
space:
mode:
Diffstat (limited to 'apks/artifacts')
-rw-r--r--apks/artifacts/APKBUILD27
-rw-r--r--apks/artifacts/artifacts.caddyfile4
2 files changed, 31 insertions, 0 deletions
diff --git a/apks/artifacts/APKBUILD b/apks/artifacts/APKBUILD
new file mode 100644
index 0000000..c5c5d71
--- /dev/null
+++ b/apks/artifacts/APKBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Gabriel Arakaki Giovanini <mail@gabrielgio.me>
+pkgname=artifacts
+pkgver=0.0.0
+pkgrel=0
+pkgdesc="Meta package for artifacts.gabrielgio.me caddy entry file"
+url="https://artifacts.gabrielgio.me"
+arch="noarch"
+license="MIT"
+options="!check" # this can't be tested
+builddir="$srcdir"
+depends="caddy"
+source=""$pkgname".caddyfile"
+
+build() {
+ echo "skipping build"
+}
+
+package() {
+ pkgdesc="caddy configuration for $pkgname"
+ mkdir -p "$pkgdir"/etc/caddy/sites/
+ install -Dm644 "$srcdir"/"$pkgname".caddyfile \
+ "$pkgdir"/etc/caddy/sites/"$pkgname".caddyfile
+}
+
+sha512sums="
+b062efa2977a6cbf08827b52014f059631a3b9daa5f53cdc36047af7fda4b071027629579937e4b39e206c211b19f96a8fc6ae9773836b73e612f86645dd4c93 artifacts.caddyfile
+"
diff --git a/apks/artifacts/artifacts.caddyfile b/apks/artifacts/artifacts.caddyfile
new file mode 100644
index 0000000..286c295
--- /dev/null
+++ b/apks/artifacts/artifacts.caddyfile
@@ -0,0 +1,4 @@
+artifacts.gabrielgio.me {
+ root * /var/www/artifacts.gabrielgio.me
+ file_server browse
+}