aboutsummaryrefslogtreecommitdiff
path: root/.builds/deploy.yml
blob: 8e7eeb59092d3742f97c1fa4cca829b0af358740 (plain)
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
image: alpine/edge
packages:
- ruby-full
- ruby-dev
- rsync
secrets:
  - ed9e4efb-54f3-4e5a-8893-a6ac262df30d
  - 5dd47c15-9600-452e-b9a7-77312af1800d
environment:
  repo: 1mb-club
  dest: /home/public/1mb.club
  server: ssh.nyc1.nearlyfreespeech.net
  BUNDLE_PATH: vendor/bundle
submitter:
  git.sr.ht:
    enabled: true
    allow-refs:
      - refs/heads/deploy
tasks:
- ssh-setup: |
    ssh-keyscan -H -4 $server >> ~/.ssh/known_hosts
- build: |
    cd $repo
    bundle install
    bundle exec jekyll build
- deploy: |
    cd $repo
    rsync -rltvz --delete _site/ nfsn:$dest/