~fluix/tilde

tilde/.build.yml -rw-r--r-- 1.6 KiB
4baf0d72Steven Guikal Bump version number 28 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# SPDX-FileCopyrightText: 2022 Steven Guikal <void@fluix.one>
# SPDX-FileCopyrightText: 2017 Drew DeVault <sir@cmpwn.com>
#
# SPDX-License-Identifier: BSD-3-Clause

image: alpine/3.15
repositories:
  cats.sh: >
    https://mirror.cats.sh/alpine/v3.15/cats.sh/
    https://mirror.cats.sh/alpine/alpine%40cats.sh.rsa.pub
    alpine@cats.sh.rsa.pub
packages:
  - openssl
  - rsync
environment:
  remote: deploy@mirror.cats.sh
  remote_path: /var/www/mirror.cats.sh/alpine
  project: tilde
  master: deploy@cats.sh
secrets:
  - f87c0d68-bd08-404b-9e3f-f595e976ffca # ssh deploy key
  - eb47f476-e5cd-4fbe-8f59-a4bee523793e # package signing key
sources:
  - https://git.sr.ht/~fluix/mirror.cats.sh-apk
  - https://git.sr.ht/~fluix/tilde
tasks:
  - archive: |
      cd $project
      pkgver=$(~/mirror.cats.sh-apk/pkgkit pkgver)
      echo "pkgver=$pkgver" >> ~/.buildenv
      git archive \
        -o ~/mirror.cats.sh-apk/cats.sh/$project/$project-$pkgver.tar.gz \
        --prefix=$project-$pkgver/ HEAD
  - pkgkit: |
      cd mirror.cats.sh-apk
      ./pkgkit add-repo -s cats.sh ~/.abuild/alpine@cats.sh.rsa
      cd cats.sh/$project
      sed -e 's?::https://git.sr.ht/.*pkgname/archive.*??g' -i APKBUILD
  - package: |
      cd mirror.cats.sh-apk
      ./pkgkit build -cuv "$pkgver" "$project"
      cd ~/$project
      git describe --exact-match HEAD || complete-build
  - publish: |
      cd mirror.cats.sh-apk
      echo "StrictHostKeyChecking=no" >> ~/.ssh/config
      ./pkgkit upload "$remote" "$remote_path" "$project"
  - deploy: |
      ssh $master doas apk upgrade -U
      ssh $master doas service uwsgi reload