feat: Add new CI system
This commit is contained in:
parent
bc5e621683
commit
e12630ef06
19 changed files with 395 additions and 217 deletions
|
@ -1,33 +1,29 @@
|
|||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
if [ -n "$TRAVIS_TAG" ]; then
|
||||
if [ -n "${SEMAPHORE_GIT_TAG_NAME}" ]; then
|
||||
echo "Deploying..."
|
||||
else
|
||||
echo "Skipping deploy"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
git config --global user.email "$TRAEFIKER_EMAIL"
|
||||
git config --global user.email "${TRAEFIKER_EMAIL}"
|
||||
git config --global user.name "Traefiker"
|
||||
|
||||
# load ssh key
|
||||
: "${encrypted_83c521e11abe_key:?}" # ensures variable is defined
|
||||
: "${encrypted_83c521e11abe_iv:?}" # same
|
||||
echo "Loading key..."
|
||||
openssl aes-256-cbc -K "$encrypted_83c521e11abe_key" -iv "$encrypted_83c521e11abe_iv" -in .travis/traefiker_rsa.enc -out ~/.ssh/traefiker_rsa -d
|
||||
eval "$(ssh-agent -s)"
|
||||
chmod 600 ~/.ssh/traefiker_rsa
|
||||
ssh-add ~/.ssh/traefiker_rsa
|
||||
chmod 600 /home/semaphore/.ssh/traefiker_rsa
|
||||
ssh-add /home/semaphore/.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"
|
||||
./updatev2.sh "${VERSION}"
|
||||
git add -A
|
||||
echo "$VERSION" | git commit --file -
|
||||
echo "$VERSION" | git tag -a "$VERSION" --file -
|
||||
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 ..
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue