diff options
Diffstat (limited to 'dist/linux/travis-enc-dockerhub.sh')
-rwxr-xr-x | dist/linux/travis-enc-dockerhub.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/dist/linux/travis-enc-dockerhub.sh b/dist/linux/travis-enc-dockerhub.sh new file mode 100755 index 000000000..a677f8039 --- /dev/null +++ b/dist/linux/travis-enc-dockerhub.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +# - Run `$(command -v winpty) docker run --rm -it alpine sh -c "REPO='https://github.com/<user|organization>/<repo>'; USERNAME=<username>; PASSWORD=<password>; $(cat travis-enc.sh)"` +# - Check the log and copy the secure key to `.travis.yml`: https://docs.travis-ci.com/user/environment-variables/#Defining-encrypted-variables-in-.travis.yml + +apk add -U --no-cache git openssh ruby ruby-dev libffi-dev build-base ruby-dev libc-dev libffi-dev linux-headers +gem install travis --no-rdoc --no-ri + +git clone $REPO ./tmp-repo && cd tmp-repo + +travis login --org --auto +travis encrypt DOCKER_USER=$USERNAME +travis encrypt DOCKER_PASS=$PASSWORD |