2020-02-27 15:11:23 +01:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
steps:
|
|
|
|
- name: build and upload
|
2020-02-27 15:14:34 +01:00
|
|
|
image: golang:1.14.0-alpine3.11
|
2020-02-27 15:11:23 +01:00
|
|
|
pull: always
|
|
|
|
environment:
|
2020-03-05 14:08:48 +01:00
|
|
|
FTP_PASS:
|
|
|
|
from_secret: ftp_pass
|
2020-02-27 15:11:23 +01:00
|
|
|
commands:
|
2020-03-05 13:36:33 +01:00
|
|
|
- apk add --no-cache make
|
2020-03-05 13:30:50 +01:00
|
|
|
- mkdir -p ~/.config/rclone
|
2020-03-05 14:08:48 +01:00
|
|
|
- make rclone_config
|
2020-03-05 13:30:50 +01:00
|
|
|
- cat ~/.config/rclone/rclone.conf
|
2020-02-27 15:11:23 +01:00
|
|
|
- make install_deps
|
2020-02-27 15:19:57 +01:00
|
|
|
- make build
|
2020-02-27 15:11:23 +01:00
|
|
|
- make ftp_upload
|
2020-03-05 09:25:01 +01:00
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|