From 039ccaf4f1c322035ce0e4968950768795a6a627 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 24 Jan 2018 16:10:04 +0100 Subject: [PATCH] Fix tar gz source only on tags on travis --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 74b01fb55..a2d7ec008 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,11 +27,11 @@ before_deploy: if [ "$TRAVIS_TAG" ]; then make -j${N_MAKE_JOBS} crossbinary-parallel; make image-dirty; + tar cfz dist/traefik-${VERSION}.src.tar.gz --exclude-vcs --exclude dist .; fi; curl -sI https://github.com/containous/structor/releases/latest | grep -Fi Location | tr -d '\r' | sed "s/tag/download/g" | awk -F " " '{ print $2 "/structor_linux-amd64"}' | wget --output-document=$GOPATH/bin/structor -i -; chmod +x $GOPATH/bin/structor; structor -o containous -r traefik --dockerfile-url="https://raw.githubusercontent.com/containous/traefik/master/docs.Dockerfile" --menu.js-url="https://raw.githubusercontent.com/containous/structor/master/traefik-menu.js.gotmpl" --exp-branch=master --debug; - tar cfz dist/traefik-${VERSION}.src.tar.gz --exclude-vcs --exclude dist .; fi deploy: - provider: releases