ref: 6fa2d9812f26d9431617ed6ebf82001c45a96703 jrgnsn.net/.build.yml -rw-r--r-- 944 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: debian/stretch
packages:
  - curl
  - rsync
  - ruby
  - ruby-dev
  - zlib1g-dev
sources:
  - https://git.sr.ht/~mjorgensen/jrgnsn.net
environment:
  deploy: deploy@jrgnsn.net
secrets:
  - 7a042c0a-91f1-4e14-b2cb-5e1aaf23411e
triggers:
  - action: email
    condition: always
    to: notify@jrgnsn.net
tasks:
  - openring: |
      curl -O https://yukari.sr.ht/openring
      chmod +x openring
      cd jrgnsn.net
      ../openring \
        -s https://drewdevault.com/feed.xml \
        -s https://www.jertype.com/feed.xml \
        -s https://marco.org/rss.xml \
        < _includes/webring_in.html \
        > _includes/webring_out.html
  - setup: |
      sudo gem install bundler github-pages -N
  - build: |
      cd jrgnsn.net
      bundle install
      bundle exec jekyll build
  - deploy: |
      cd jrgnsn.net
      sshopts="-o StrictHostKeyChecking=no"
      rsync --rsh="ssh $sshopts" -rP _site/ ${deploy}:/var/www/jrgnsn.net/