2018-06-06 20:02:00 +00:00
|
|
|
os: linux
|
|
|
|
services: docker
|
|
|
|
language: minimal
|
|
|
|
install: skip
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- docker-ce
|
2018-08-05 23:37:16 +00:00
|
|
|
- pass
|
2018-06-06 20:02:00 +00:00
|
|
|
env:
|
|
|
|
global:
|
2018-07-01 04:35:53 +00:00
|
|
|
- USE_DOCKER="true"
|
|
|
|
stages:
|
2018-08-05 23:37:16 +00:00
|
|
|
- lint
|
|
|
|
- test
|
|
|
|
- release
|
2018-07-01 04:35:53 +00:00
|
|
|
cache:
|
|
|
|
directories:
|
2018-08-21 21:42:03 +00:00
|
|
|
- lib/rice-box.go
|
2018-07-01 04:35:53 +00:00
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
- stage: lint
|
2019-01-02 02:13:53 +00:00
|
|
|
script: "./build/run_linters.sh"
|
2018-07-01 04:35:53 +00:00
|
|
|
- stage: test
|
|
|
|
script: "./build/build_all.sh"
|
|
|
|
deploy:
|
|
|
|
provider: script
|
|
|
|
skip_cleanup: true
|
2018-08-07 12:29:50 +00:00
|
|
|
script: docker build -t filebrowser/filebrowser . && ./build/docker_login.sh && docker push filebrowser/filebrowser && docker logout
|
2018-07-01 04:35:53 +00:00
|
|
|
on:
|
|
|
|
tags: false
|
2018-08-05 10:13:25 +00:00
|
|
|
repo: filebrowser/filebrowser
|
2018-07-01 04:35:53 +00:00
|
|
|
branch: master
|
|
|
|
- stage: release
|
|
|
|
script:
|
2018-12-25 23:48:43 +00:00
|
|
|
- docker run --rm -itv $(pwd):/go/src/github.com/filebrowser/filebrowser -v /var/run/docker.sock:/var/run/docker.sock filebrowser/dev goreleaser
|
2018-08-16 03:55:03 +00:00
|
|
|
- ./build/push_images.sh
|
2018-08-06 04:02:59 +00:00
|
|
|
- ./build/push_ricebox.sh
|
2018-07-01 04:35:53 +00:00
|
|
|
if: tag IS present
|
|
|
|
deploy:
|
|
|
|
provider: releases
|
2018-08-16 03:55:03 +00:00
|
|
|
skip_cleanup: true
|
2018-07-01 04:35:53 +00:00
|
|
|
api_key:
|
2018-08-06 02:50:16 +00:00
|
|
|
secure: GCURbl9xmjOmeNc7cYSvfSwbEp46cacWmJRczcsU6rQa0aWqzjELYdyIsl6HWW+o0dzuZvbWRD6muxYqIud92oPLYDuXSnra9tM3mCjswrjiPCJ57bksWkSPBfFQcxIyB6c3o+A/FMnX3nnSE/2r5HYZnPNFbEcBbC7WSgwx9ejXUuyWn1PUFK9YQWANdl6J7b7EKsk+9MxS9Pmw6M2ycBwX8ScUQdofkUPvR/nqlXISm+3hs30VubqQi9Ha6DM9Bw3aFK3/Ts/ujCOxP1ZoMCBZ6tfnaQOElIG96WTwnt77eDYlZezBOLym3Z18iif+Qny+XndFKDbexaiUT06VlWFXCKtt3iLs6HJwRcjmiHmB0Z3v+W4cKPl3cEyxxrU2aal54k1PBhU+5L0Xc8ileKbDMYg5tps88zWHNefeZVfaxYSVrmUHkuygMe481oaBLacDXTxs4t6XEpStREuLmvx9NLTwTFAbWjMNM0PqlueDMxO4bdwNvzXg/TcKLWV9FezqAlre8lFNZK5wX6lKFVSZ3hFjxCfwrJL2cPwg5A8Yd5EOC4Nh81WdgYuFGOxZzMAoSJlaVRvQS1trCUP/++ONnDep3ExSxvw4B7vijGZWeXUhrOMiPQHXu+t6BnrlnDjQ4gi44QTW0y/iM2WC2DBKfgYjAKwyHx13hFrmOCg=
|
2018-08-06 02:34:10 +00:00
|
|
|
file: "dist/*.*"
|
2018-07-01 04:35:53 +00:00
|
|
|
file_glob: true
|
|
|
|
on:
|
2018-08-05 10:13:25 +00:00
|
|
|
repo: filebrowser/filebrowser
|
2018-08-16 03:55:03 +00:00
|
|
|
all_branches: true
|
|
|
|
tags: true
|