fix: revert deploy script.
This commit is contained in:
parent
5e7b6e4860
commit
6069df6cbd
1 changed files with 6 additions and 8 deletions
|
@ -8,14 +8,12 @@ else
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
SCRIPT_DIR="$( cd "$( dirname "${0}" )" && pwd -P)"
|
|
||||||
|
|
||||||
git config --global user.email "$TRAEFIKER_EMAIL"
|
git config --global user.email "$TRAEFIKER_EMAIL"
|
||||||
git config --global user.name "Traefiker"
|
git config --global user.name "Traefiker"
|
||||||
|
|
||||||
# load ssh key
|
# load ssh key
|
||||||
echo "Loading key..."
|
echo "Loading key..."
|
||||||
openssl aes-256-cbc -K "${encrypted_f9e835a425bc_key}" -iv "${encrypted_f9e835a425bc_iv}" -in .travis/traefiker_rsa.enc -out ~/.ssh/traefiker_rsa -d
|
openssl aes-256-cbc -K $encrypted_f9e835a425bc_key -iv $encrypted_f9e835a425bc_iv -in .travis/traefiker_rsa.enc -out ~/.ssh/traefiker_rsa -d
|
||||||
eval "$(ssh-agent -s)"
|
eval "$(ssh-agent -s)"
|
||||||
chmod 600 ~/.ssh/traefiker_rsa
|
chmod 600 ~/.ssh/traefiker_rsa
|
||||||
ssh-add ~/.ssh/traefiker_rsa
|
ssh-add ~/.ssh/traefiker_rsa
|
||||||
|
@ -23,14 +21,14 @@ ssh-add ~/.ssh/traefiker_rsa
|
||||||
# update traefik-library-image repo (official Docker image)
|
# update traefik-library-image repo (official Docker image)
|
||||||
echo "Updating traefik-library-imag repo..."
|
echo "Updating traefik-library-imag repo..."
|
||||||
git clone git@github.com:containous/traefik-library-image.git
|
git clone git@github.com:containous/traefik-library-image.git
|
||||||
cd "${SCRIPT_DIR}"/traefik-library-image
|
cd traefik-library-image
|
||||||
"${SCRIPT_DIR}"/traefik-library-image/updatev2.sh "${VERSION}"
|
./updatev2.sh $VERSION
|
||||||
git add -A
|
git add -A
|
||||||
echo "${VERSION}" | git commit --file -
|
echo $VERSION | git commit --file -
|
||||||
echo "${VERSION}" | git tag -a "${VERSION}" --file -
|
echo $VERSION | git tag -a $VERSION --file -
|
||||||
git push -q --follow-tags -u origin master > /dev/null 2>&1
|
git push -q --follow-tags -u origin master > /dev/null 2>&1
|
||||||
|
|
||||||
cd "${SCRIPT_DIR}"
|
cd ..
|
||||||
rm -Rf traefik-library-image/
|
rm -Rf traefik-library-image/
|
||||||
|
|
||||||
echo "Deployed"
|
echo "Deployed"
|
||||||
|
|
Loading…
Reference in a new issue