Publish binary artifacts to GitHub
Signed-off-by: Amir Zarrinkafsh <nightah@me.com>pull/463/head v4.0.0-alpha2
parent
f143dd19a2
commit
1c35be7c27
12
.travis.yml
12
.travis.yml
|
@ -38,7 +38,6 @@ jobs:
|
|||
- stage: test
|
||||
script:
|
||||
- authelia-scripts --log-level debug ci
|
||||
# TODO(c.michaud): publish built artifact on Github.
|
||||
- &build-images
|
||||
stage: build images
|
||||
env:
|
||||
|
@ -50,6 +49,17 @@ jobs:
|
|||
- kill %1
|
||||
after_success:
|
||||
- authelia-scripts docker push-image --arch=$ARCH
|
||||
- if [[ $TRAVIS_TAG ]]; then docker create --name authelia-binary clems4ever/authelia:$TRAVIS_TAG-$ARCH && docker cp authelia-binary:/usr/app/authelia ./authelia-linux-$ARCH && docker cp authelia-binary:/usr/app/public_html ./ && tar -czf authelia-linux-$ARCH.tar.gz authelia-linux-$ARCH public_html; fi
|
||||
before_deploy:
|
||||
- echo Deploying Authelia $TRAVIS_TAG-$ARCH to GitHub Releases
|
||||
deploy:
|
||||
provider: releases
|
||||
api_key: '$GITHUB_API_KEY'
|
||||
file_glob: true
|
||||
file: 'authelia-linux-$ARCH.tar.gz'
|
||||
skip_cleanup: true
|
||||
on:
|
||||
tags: true
|
||||
- <<: *build-images
|
||||
env:
|
||||
- ARCH=arm32v7
|
||||
|
|
Loading…
Reference in New Issue