mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
bf1ef5b0f8
Former-commit-id: 0593d1dd3883e25a44588131fa6fe69df815fd87 [formerly 429f789e0c54719595830f2290985be1f5899fb1] [formerly bb5b0328aa951f5534ab29e5070a1aa4da9ec2e2 [formerly 52aebd0444
]]
Former-commit-id: 0cd117cb81b2a38b2646cc880c8774fed786d45c [formerly bf046ec317be577c8c3c4613d81272f6ae7fcabc]
Former-commit-id: 5066ef1dc9b898e8cf9909c03dede43690325815
57 lines
1.9 KiB
YAML
57 lines
1.9 KiB
YAML
os: linux
|
|
services: docker
|
|
language: minimal
|
|
install: skip
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- docker-ce
|
|
- pass
|
|
env:
|
|
global:
|
|
- 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 .
|
|
- ./build/docker_login.sh
|
|
- docker push filebrowser/filebrowser
|
|
- docker logout
|
|
on:
|
|
tags: false
|
|
repo: filebrowser/filebrowser
|
|
branch: master
|
|
- stage: release
|
|
script:
|
|
- cp dockerfiles/filebrowser Dockerfile
|
|
- ./build/docker_login.sh
|
|
- docker run --rm -itv $(pwd):$WDIR -v /var/run/docker.sock:/var/run/docker.sock filebrowser/dev goreleaser
|
|
- docker logout
|
|
if: tag IS present
|
|
deploy:
|
|
provider: releases
|
|
api_key:
|
|
secure: GCURbl9xmjOmeNc7cYSvfSwbEp46cacWmJRczcsU6rQa0aWqzjELYdyIsl6HWW+o0dzuZvbWRD6muxYqIud92oPLYDuXSnra9tM3mCjswrjiPCJ57bksWkSPBfFQcxIyB6c3o+A/FMnX3nnSE/2r5HYZnPNFbEcBbC7WSgwx9ejXUuyWn1PUFK9YQWANdl6J7b7EKsk+9MxS9Pmw6M2ycBwX8ScUQdofkUPvR/nqlXISm+3hs30VubqQi9Ha6DM9Bw3aFK3/Ts/ujCOxP1ZoMCBZ6tfnaQOElIG96WTwnt77eDYlZezBOLym3Z18iif+Qny+XndFKDbexaiUT06VlWFXCKtt3iLs6HJwRcjmiHmB0Z3v+W4cKPl3cEyxxrU2aal54k1PBhU+5L0Xc8ileKbDMYg5tps88zWHNefeZVfaxYSVrmUHkuygMe481oaBLacDXTxs4t6XEpStREuLmvx9NLTwTFAbWjMNM0PqlueDMxO4bdwNvzXg/TcKLWV9FezqAlre8lFNZK5wX6lKFVSZ3hFjxCfwrJL2cPwg5A8Yd5EOC4Nh81WdgYuFGOxZzMAoSJlaVRvQS1trCUP/++ONnDep3ExSxvw4B7vijGZWeXUhrOMiPQHXu+t6BnrlnDjQ4gi44QTW0y/iM2WC2DBKfgYjAKwyHx13hFrmOCg=
|
|
file: "dist/*.*"
|
|
file_glob: true
|
|
on:
|
|
repo: filebrowser/filebrowser
|
|
branch: master
|