fix: add docker login and push tag
License: MIT Signed-off-by: Henrique Dias <hacdias@gmail.com>
This commit is contained in:
parent
3c321bf9de
commit
cebb1de2af
15
wizard.sh
15
wizard.sh
@ -20,6 +20,7 @@ debugInfo () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dockerLogin () {
|
dockerLogin () {
|
||||||
|
if [ "$CI" == "true" ]; then
|
||||||
gpg --batch --gen-key <<-EOF
|
gpg --batch --gen-key <<-EOF
|
||||||
%echo Generating a standard key
|
%echo Generating a standard key
|
||||||
Key-Type: DSA
|
Key-Type: DSA
|
||||||
@ -42,6 +43,9 @@ EOF
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "$DOCKER_PASS" | docker login -u "$DOCKER_USER" --password-stdin
|
echo "$DOCKER_PASS" | docker login -u "$DOCKER_USER" --password-stdin
|
||||||
|
else
|
||||||
|
docker login
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
dockerPushLatest () {
|
dockerPushLatest () {
|
||||||
@ -51,6 +55,17 @@ dockerPushLatest () {
|
|||||||
docker logout
|
docker logout
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dockerPushTag () {
|
||||||
|
dockerLogin
|
||||||
|
|
||||||
|
for tag in `echo $(docker images filebrowser/filebrowser* | awk -F ' ' '{print $1 ":" $2}') | cut -d ' ' -f2-`; do
|
||||||
|
if [ "$tag" = "REPOSITORY:TAG" ]; then break; fi
|
||||||
|
docker push $tag
|
||||||
|
done
|
||||||
|
|
||||||
|
docker logout
|
||||||
|
}
|
||||||
|
|
||||||
installRice () {
|
installRice () {
|
||||||
if ! [ -x "$(command -v rice)" ]; then
|
if ! [ -x "$(command -v rice)" ]; then
|
||||||
go get github.com/GeertJohan/go.rice/rice
|
go get github.com/GeertJohan/go.rice/rice
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user