2018-06-06 20:02:00 +00:00
|
|
|
os: linux
|
|
|
|
services: docker
|
|
|
|
language: minimal
|
|
|
|
install: skip
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- docker-ce
|
|
|
|
env:
|
|
|
|
global:
|
2018-07-01 04:35:53 +00:00
|
|
|
- USE_DOCKER="true"
|
|
|
|
- WDIR=/go/src/github.com/filebrowser/filebrowser
|
|
|
|
stages:
|
|
|
|
- lint
|
|
|
|
- test
|
|
|
|
- release
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- vendor
|
|
|
|
- rice-box.go
|
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
- stage: lint
|
|
|
|
script: "./build/run_gometalinter.sh"
|
|
|
|
- stage: test
|
|
|
|
script: "./build/build_all.sh"
|
|
|
|
deploy:
|
|
|
|
provider: script
|
|
|
|
skip_cleanup: true
|
|
|
|
script:
|
|
|
|
- cp dockerfiles/filebrowser Dockerfile
|
|
|
|
- docker build -t filebrowser/filebrowser .
|
|
|
|
- echo "$DOCKER_PASS" | docker login -u "$DOCKER_USER" --password-stdin
|
|
|
|
- docker push filebrowser/filebrowser
|
|
|
|
- docker logout
|
|
|
|
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:
|
|
|
|
- cp dockerfiles/filebrowser Dockerfile
|
|
|
|
- echo "$DOCKER_PASS" | docker login -u "$DOCKER_USER" --password-stdin
|
2018-07-02 03:21:58 +00:00
|
|
|
- docker run --rm -itv $(pwd):$WDIR -v /var/run/docker.sock:/var/run/docker.sock filebrowser/dev goreleaser
|
2018-07-01 04:35:53 +00:00
|
|
|
- docker logout
|
|
|
|
if: tag IS present
|
|
|
|
deploy:
|
|
|
|
provider: releases
|
|
|
|
api_key:
|
|
|
|
secure: fEJu6vcxplTZ3ZR/fALLBp4mPWViIba4aeoiwNVJ9zqKmiZ5KG0pRqTMyevt8JUlR9yW0QNAfzkpd+wCqBHVWKIOy9Sy1Ocp3D0TY23ZAV29qKWwON9alBPqs6X6v6FiO0JFf5tARd+bpTmB3gFEUL1AGJ/UADv15fjwTERWlueloP6jmUCTCZEaTxkwrWxM8eBcMb3RlQykVKCMAZ5lGILWEKvJ8eBA7eP6GQtscCyS4tud+UWUb60VAufSPFv5K99dapm/1EXTTjgbtiY/zPP6FigR2RN/F6U0IUeEZbmftWcuDsp6lG4qInfwB1wK22F62KV193h8kgFDd8fB3hZuBVqBMtCxhuDFUFpULo2nAK8yyJP4/nc8SejHTxgFmIMhnUxLcE0om0E6bD6dFGNON08Bb/DheIvTzJSl44x6BomC/6xKKUp/GI6jGIxhV7YuWSJB4V3/5kG2ePbjEn/L+9BLY6L0kY7eea31xpSdDk881p0NOCN0lrD8RcDFf9qBtVhsh/RG2nbloC9mJI1iLTX/JRK4Rg1FROtsOE7PWPy3DbDB1rEweea2qahIbThbvfYbIhCYi0Oly6aeSJYfphQFY/hyNNrZZmWCq9gejVZelLDiYEV8Zkorhn4i/hPQ13nkVn1Rbd8jacoM1i3M4S4hkhjzlBIB+N2qudE=
|
|
|
|
file: "dist/*.tar.gz"
|
|
|
|
file_glob: true
|
|
|
|
on:
|
2018-08-05 10:13:25 +00:00
|
|
|
repo: filebrowser/filebrowser
|
2018-07-01 04:35:53 +00:00
|
|
|
all_branches: true
|