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 goarch: amd64
goarm: '' goarm: ''
image: filebrowser/filebrowser image: filebrowser/filebrowser
skip_push: true skip_push: false
tag_templates: tag_templates:
- "{{ .Tag }}" - "{{ .Tag }}"
- latest - latest

View File

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