1
0
mirror of https://github.com/containous/traefik.git synced 2025-03-15 02:50:12 +03:00
traefik/script/deploy.sh

33 lines
750 B
Bash
Raw Permalink Normal View History

#!/usr/bin/env bash
set -e
2024-12-06 16:56:06 +01:00
if [ -n "${VERSION}" ]; then
echo "Deploying..."
2016-02-22 15:01:00 +01:00
else
echo "Skipping deploy"
exit 0
fi
2021-07-23 11:00:07 +02:00
git config --global user.email "${TRAEFIKER_EMAIL}"
2017-08-28 11:48:03 +02:00
git config --global user.name "Traefiker"
# load ssh key
eval "$(ssh-agent -s)"
2024-12-06 16:56:06 +01:00
chmod 600 ~/.ssh/traefiker_rsa
ssh-add ~/.ssh/traefiker_rsa
# update traefik-library-image repo (official Docker image)
echo "Updating traefik-library-imag repo..."
git clone git@github.com:traefik/traefik-library-image.git
2019-06-17 23:40:05 +02:00
cd traefik-library-image
2021-07-23 11:00:07 +02:00
./updatev2.sh "${VERSION}"
git add -A
2021-07-23 11:00:07 +02:00
echo "${VERSION}" | git commit --file -
echo "${VERSION}" | git tag -a "${VERSION}" --file -
git push -q --follow-tags -u origin master > /dev/null 2>&1
2019-06-17 23:40:05 +02:00
cd ..
rm -Rf traefik-library-image/
echo "Deployed"