chore: fix release conditions

Former-commit-id: 6300d99faea5b807ba90ca409bcc683eefb5cf67 [formerly e9ce861912c0b03f64bded2ed44896d6ae79a485] [formerly 8acca6c5ecf8b56e85e22271addaa7ce396bc676 [formerly 714876e3d0]]
Former-commit-id: bcc4154cbe9a0dbe6819b3ac3236d98c3b8f6010 [formerly 00da283ee494ad42a7e886f52fa5c8ec34860c68]
Former-commit-id: 4f8963ab76da8a9230e835ba8ef82b7893516b20
pull/726/head
1138-4EB 2018-08-16 04:55:03 +01:00
parent c163318ce5
commit 5ec06fa0cd
2 changed files with 18 additions and 3 deletions

View File

@ -35,17 +35,18 @@ jobs:
branch: master
- stage: release
script:
- ./build/docker_login.sh
- docker run --rm -itv $(pwd):$WDIR -v /var/run/docker.sock:/var/run/docker.sock filebrowser/dev goreleaser
- docker logout
- ./build/push_images.sh
- ./build/push_ricebox.sh
if: tag IS present
deploy:
provider: releases
skip_cleanup: true
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
all_branches: true
tags: true

14
build/push_images.sh Executable file
View File

@ -0,0 +1,14 @@
#! /bin/sh
set -e
cd $(dirname $0)
./docker_login.sh
for tag in `echo $(docker images filebrowser/filebrowser* | awk -F ' ' '{print $1 ":" $2}') | cut -d ' ' -f2-`; do
if [ "$tag" = "REPOSITORY:TAG" ]; then break; fi
docker push $tag
done
docker logout