~michalr/blog2gmi

f828c56d70585cfbad2d614f617f633c656ae12a — Michał Rudowicz 2 years ago c6f0e67
Upload the built binary to my FTP
1 files changed, 18 insertions(+), 4 deletions(-)

M .build.yml
M .build.yml => .build.yml +18 -4
@@ 2,12 2,26 @@ image: alpine/latest
packages:
- crystal
- shards
- xz
- lftp
secrets:
- 37de76ab-f4c1-4ac0-a8ed-8a9562205c65
environment:
  FTPURL: ftp.cluster021.hosting.ovh.net
tasks:
- build: |-
    cd blog2gmi
    rm shard.lock
    shards build
- test: |-
    cd blog2gmi
    rm shard.lock
    shards
    crystal spec --tag "~disable"
- release_build: |-
    cd blog2gmi
    rm shard.lock
    shards build --release
- upload: |-
    cd blog2gmi
    xz bin/blog2gmi
    lftp -c "
          open ${FTPURL};
          put -e bin/blog2gmi.xz -o /zsyp/bin/blog2gmi.xz
        "