Switch wiki deployment to the openra user with ssh auth
This commit is contained in:
@@ -7,6 +7,10 @@ language: csharp
|
|||||||
sudo: false
|
sudo: false
|
||||||
cache: apt
|
cache: apt
|
||||||
|
|
||||||
|
# Environment variables
|
||||||
|
env:
|
||||||
|
secure: "C0+Hlfa0YGErxUuWV00Tj6p45otC/D3YwYFuLpi2mj1rDFn/4dgh5WRngjvdDBVbXJ3duaZ78jPHWm1jr7vn2jqj9yETsCIK9psWd38ep/FEBM0SDr6MUD89OuXk/YyvxJAE+UXF6bXg7giey09g/CwBigjMW7ynET3wNAWPHPs="
|
||||||
|
|
||||||
# Run the build script
|
# Run the build script
|
||||||
# call RALint to check for YAML errors
|
# call RALint to check for YAML errors
|
||||||
script:
|
script:
|
||||||
|
|||||||
BIN
packaging/ssh.enc
Normal file
BIN
packaging/ssh.enc
Normal file
Binary file not shown.
@@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo "Branch is $1"
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
"bleed")
|
"bleed")
|
||||||
exit
|
exit
|
||||||
@@ -17,6 +19,13 @@ case "$1" in
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
echo "Updating https://github.com/OpenRA/OpenRA/wiki/"
|
echo "Updating https://github.com/OpenRA/OpenRA/wiki/"
|
||||||
|
|
||||||
|
SSH_KEY="$HOME"/.ssh/id_rsa
|
||||||
|
|
||||||
|
mkdir -p "$(dirname "$SSH_KEY")"
|
||||||
|
openssl aes-256-cbc -k "$KEY" -in ssh.enc -d -out "$SSH_KEY"
|
||||||
|
chmod 0600 "$SSH_KEY"
|
||||||
|
|
||||||
rm -rf $HOME/openra-wiki
|
rm -rf $HOME/openra-wiki
|
||||||
git clone git@github.com:OpenRA/OpenRA.wiki.git $HOME/openra-wiki
|
git clone git@github.com:OpenRA/OpenRA.wiki.git $HOME/openra-wiki
|
||||||
cp -fr ../DOCUMENTATION.md "${HOME}/openra-wiki/Traits${TAG}.md"
|
cp -fr ../DOCUMENTATION.md "${HOME}/openra-wiki/Traits${TAG}.md"
|
||||||
@@ -27,6 +36,8 @@ git config --local user.email "orabot@users.noreply.github.com"
|
|||||||
git config --local user.name "orabot"
|
git config --local user.name "orabot"
|
||||||
git add "Traits${TAG}.md"
|
git add "Traits${TAG}.md"
|
||||||
git add "Lua API${TAG}.md"
|
git add "Lua API${TAG}.md"
|
||||||
git commit -m "Update trait and scripting documentation for branch $1"
|
git commit -m "Update trait and scripting documentation for branch $1" &&
|
||||||
git push origin master
|
git push origin master
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
shred -u "$SSH_KEY"
|
||||||
|
|||||||
Reference in New Issue
Block a user