/
githubmirror
/
traefik
Обзор
Документация
Войти
/
githubmirror
/
traefik
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
script/deploy.sh
32 строки
750 B
Michael
Fix release by using github action
06 дек 2024, 18:56
Не верифицирован
06 дек 2024, 18:56
42df9af
Код
Авторство
О чём код?
#!/usr/bin/env bash set -e if [ -n "${VERSION}" ]; then echo "Deploying..." else echo "Skipping deploy" exit 0 fi git config --global user.email "${TRAEFIKER_EMAIL}" git config --global user.name "Traefiker" # load ssh key eval "$(ssh-agent -s)" 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 cd traefik-library-image ./updatev2.sh "${VERSION}" git add -A echo "${VERSION}" | git commit --file - echo "${VERSION}" | git tag -a "${VERSION}" --file - git push -q --follow-tags -u origin master > /dev/null 2>&1 cd .. rm -Rf traefik-library-image/ echo "Deployed"