~cnx/ipwhl-data

ref: 2da1b29b2708a42fbcd4145bd472425f7e302bbf ipwhl-data/.build.yml -rw-r--r-- 1.2 KiB
2da1b29bNguyễn Gia Phong Publish 2021W30 2 months 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
image: archlinux
packages:
  - go-ipfs
  - python-pip
sources:
  - https://git.sr.ht/~cnx/ipwhl-data
  - https://git.sr.ht/~cnx/ipwhl-utils
tasks:
  - init: |
      ipfs init
      systemctl --user enable --now ipfs.service
      until printf '%s\n' $PINATA_NYC |
        nl |
        xargs printf '/dnsaddr/nyc1-%d.hostnodes.pinata.cloud/p2p/%s\n' |
        xargs -n1 ipfs swarm connect
      do
        sleep 1
      done
      python -m pip install --no-warn-script-location pip
      python -m pip install packaging toml
  - name: ipwhl-utils/nameck.py ipwhl-data/pkgs
  - decl: |
      git -C ipwhl-data diff --name-only origin/main pkgs |
        sed s/^/ipwhl-data\\// |
        while read -r declaration
        do
          if test -f $declaration
          then
            echo $declaration
          fi
        done | ipwhl-utils/declck.py
  - deps: ipwhl-utils/depsck.py ipwhl-data/pkgs < ipwhl-data/SUPPORTED
environment:
  PINATA_NYC: >-
    QmRjLSisUCHVpFa5ELVvX3qVPfdxajxWJEHs9kN3EcxAW6
    QmPySsdmbczdZYBpbi2oq2WMJ8ErbfxtkG8Mo192UHkfGP
    QmSarArpxemsPESa6FNkmuu9iSE1QWqPX2R3Aw6f5jq4D5
  PIP_DISABLE_PIP_VERSION_CHECK: 1
  PIP_FORCE_REINSTALL: 1
  PIP_INDEX_URL: >-
    http://localhost:8080/ipfs/QmVxczM33vaFY8ecQDe1WjzgARLxtBFxBdT5ruqBs4vUvs
  PIP_QUIET: 1