From 41913360be1f530593c8d4d28cf92ab4b93d93ea Mon Sep 17 00:00:00 2001 From: Amir Zarrinkafsh Date: Tue, 3 Dec 2019 06:46:27 +1100 Subject: [PATCH] Optimise deploy steps for Github releases (#468) Signed-off-by: Amir Zarrinkafsh --- .travis.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4167d9ed4..a6b23b400 100644 --- a/.travis.yml +++ b/.travis.yml @@ -49,9 +49,11 @@ 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 + - 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 deploy: provider: releases api_key: '$GITHUB_API_KEY'