~lord/krasovs.ky

ref: b5d898b7c4136a377db681f20beddbffbed18984 krasovs.ky/.build.yml -rw-r--r-- 469 bytes
b5d898b7Savely Krasovsky ci/cd improvements 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
image: alpine/latest
packages:
  - rsync
  - hugo
sources:
  - https://git.sr.ht/~lord/krasovs.ky
secrets:
  - f4b5c314-069d-4ba0-bf31-63067cfb0c78
triggers:
  - action: email
    condition: always
    to: Savely Krasovsky <savely@krasovs.ky>
environment:
  site: krasovs.ky
tasks:
  - build: |
      cd $site
      hugo --minify -d ../public
  - upload: |
      echo "StrictHostKeyChecking=no" >> ~/.ssh/config
      rsync -rP public/ deploy@krasovs.ky:/var/www/$site/