ref: 892386e13e021bb4793a7fda42338f3838a4f56c topham/.builds/alpine.yml -rw-r--r-- 961 bytes View raw
                                                                                
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
image: alpine/latest
packages:
  - chicken
  - gcc
  - libc-dev
  - openssl-dev
  - rsync
  - sudo
sources:
  - https://git.sr.ht/~evhan/topham
secrets:
  - 8c478eb6-27c2-4883-bd85-4bb0ca2d6c33
  - 6026e7c6-ed80-411e-b4e1-5ed1dbeee131
environment:
  CSC_CLI_OPTIONS: -static -L -static -L -lssl -L -lcrypto -L -ldl -L -pthread
  DEPLOY_HOST: chicken@foldling.org
  RSYNC_RSH: ssh -q -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null
tasks:
  - build: |
      cd topham
      chicken-install -s
      touch cli.scm
      export CSC_OPTIONS=${CSC_CLI_OPTIONS}
      chicken-install -s
  - test: |
      cd topham
      {
        set +x
        . ~/.buildsecrets
        set -x
      }
      export SRHT_ACCESS_TOKEN
      chicken-install -s -test
  - deploy: |
      cd topham
      git describe --exact-match --tags HEAD || exit 0
      rsync cli ${DEPLOY_HOST}:topham/topham-x86_64-linux
      rsync cli ${DEPLOY_HOST}:topham/topham-x86_64-linux-musl