apkbuilds @ 7062fc064b06b78592e77ba809990c0f1a701391

feat: Add working build

For now it only builds a single project ... as there is only one project to be build.
 1diff --git a/LICENSE b/LICENSE
 2new file mode 100644
 3index 0000000000000000000000000000000000000000..036d042add9efeb3c3e382eccc9c2a62d718fd12
 4--- /dev/null
 5+++ b/LICENSE
 6@@ -0,0 +1,22 @@
 7+MIT License
 8+
 9+Copyright (c) 2021 Gabriel Arakaki Giovanini
10+
11+Permission is hereby granted, free of charge, to any person obtaining a copy of
12+this software and associated documentation files (the "Software"), to deal in
13+the Software without restriction, including without limitation the rights to
14+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
15+of the Software, and to permit persons to whom the Software is furnished to do
16+so, subject to the following conditions:
17+
18+The above copyright notice and this permission notice (including the next
19+paragraph) shall be included in all copies or substantial portions of the
20+Software.
21+
22+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28+SOFTWARE.
29diff --git a/README.md b/README.md
30new file mode 100644
31index 0000000000000000000000000000000000000000..bd156d392cbde34f365a67779d31e2e0b4db4b8f
32--- /dev/null
33+++ b/README.md
34@@ -0,0 +1,7 @@
35+# apkbuilds
36+
37+This is me just me playing with alpine repos. Also I'll be deploying my futures
38+toy project into alpine machines, so this will come handy.
39+
40+Who needs docker anyways ;)
41+
42diff --git a/build.yml b/build.yml
43new file mode 100644
44index 0000000000000000000000000000000000000000..4829f1a1e3b574b2e1c1ec2ec157ef11eeb4eb8c
45--- /dev/null
46+++ b/build.yml
47@@ -0,0 +1,23 @@
48+image: alpine/3.15
49+packages:
50+  - openssl
51+  - rsync
52+  - alpine-sdk
53+environment:
54+  deploy: builds@gabrielgio.me
55+  target: artifacts.gabrielgio.me/repo/
56+sources:
57+  - https://git.sr.ht/~gabrielgio/apkbuilds
58+secrets:
59+  - 008c4f67-b864-47f8-9790-cd32f2ae8516
60+  - df9d57f4-43bb-4084-a748-dbf02848bdd0
61+tasks:
62+  - setup: |
63+      echo "PACKAGER_PRIVKEY=\"/home/build/.abuild/mail@gabrielgio.me-62ddc4dc.rsa\"" > ~/.abuild/abuild.conf
64+  - build: |
65+      cd apkbuilds/midr
66+      abuild -r
67+  - deploy: |
68+      sshopts="ssh -o StrictHostKeyChecking=no"
69+      rsync --rsh="$sshopts" -rP ~/packages/apkbuilds/ $deploy:/var/www/$target
70+