chore: fix release conditions

This commit is contained in:
1138-4EB 2018-08-16 04:55:03 +01:00
parent 0854c423c3
commit cf71748a91
2 changed files with 4 additions and 5 deletions

View File

@ -51,7 +51,7 @@ dockers:
goarch: amd64
goarm: ''
image: filebrowser/filebrowser
skip_push: true
skip_push: false
tag_templates:
- "{{ .Tag }}"
- latest

View File

@ -35,9 +35,7 @@ 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
- docker run --rm -itv $(pwd):$WDIR -v /var/run/docker.sock:/var/run/docker.sock filebrowser/dev sh -c "./build/docker_login.sh && goreleaser; docker logout"
- ./build/push_ricebox.sh
if: tag IS present
deploy:
@ -48,4 +46,5 @@ jobs:
file_glob: true
on:
repo: filebrowser/filebrowser
branch: master
all_branches: true
tags: true