~lord/krasovs.ky

b5d898b7c4136a377db681f20beddbffbed18984 — Savely Krasovsky 13 days ago 7da6f8a master
ci/cd improvements
1 files changed, 6 insertions(+), 5 deletions(-)

M .build.yml
M .build.yml => .build.yml +6 -5
@@ 1,4 1,4 @@
image: alpine/edge
image: alpine/latest
packages:
  - rsync
  - hugo


@@ 10,11 10,12 @@ triggers:
  - action: email
    condition: always
    to: Savely Krasovsky <savely@krasovs.ky>
environment:
  site: krasovs.ky
tasks:
  - build: |
      cd krasovs.ky
      hugo --minify
      cd $site
      hugo --minify -d ../public
  - upload: |
      cd krasovs.ky
      echo "StrictHostKeyChecking=no" >> ~/.ssh/config
      rsync -rP public/ deploy@krasovs.ky:/var/www/krasovs.ky/
\ No newline at end of file
      rsync -rP public/ deploy@krasovs.ky:/var/www/$site/
\ No newline at end of file