mirror of
https://github.com/Frail7487Real/laughing-spork.git
synced 2024-11-13 22:14:55 -05:00
lets move to mnt :D
This commit is contained in:
parent
d340a87bb3
commit
23a45bbb87
2 changed files with 15 additions and 9 deletions
20
.github/workflows/runglobal.yml
vendored
20
.github/workflows/runglobal.yml
vendored
|
@ -48,9 +48,15 @@ jobs:
|
|||
run: |
|
||||
sudo pkill provjobd
|
||||
|
||||
cd /tmp
|
||||
sudo mkdir /mnt/globalData
|
||||
sudo chown $(whoami) globalData/
|
||||
|
||||
cd /mnt/globalData
|
||||
|
||||
wget -O archive.zip https://codeload.github.com/CeciliaKelley33Mm/CeciliaKelley33Mm.github.io/zip/refs/heads/main
|
||||
unzip archive.zip
|
||||
|
||||
rm -rf archive.zip
|
||||
- name: Set everything up
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
@ -60,8 +66,8 @@ jobs:
|
|||
run: |
|
||||
echo "$GH_TOKEN" > ~/gh_token.txt
|
||||
|
||||
mkdir /tmp/muse
|
||||
cd /tmp/muse
|
||||
mkdir /mnt/globalData/muse
|
||||
cd /mnt/globalData/muse
|
||||
wget -O docker-compose.yml https://raw.githubusercontent.com/CeciliaKelley33Mm/global/refs/heads/master/muse-compose.yml
|
||||
sed -i 's/DISCORD_TOKEN_PLACEHOLDER/${{ secrets.DISCORD_TOKEN }}/g' docker-compose.yml
|
||||
sed -i 's/YOUTUBE_API_KEY_PLACEHOLDER/${{ secrets.YOUTUBE_API_KEY }}/g' docker-compose.yml
|
||||
|
@ -70,7 +76,7 @@ jobs:
|
|||
docker compose up -d &
|
||||
|
||||
if [ "${{ inputs.oldTailscaleHostname }}" != "" ]; then
|
||||
cd /tmp
|
||||
cd /mnt/globalData
|
||||
|
||||
aria2c -x 16 -j 16 -s 16 http://${{ inputs.oldTailscaleHostname }}:5000/archive.tar.gz
|
||||
|
||||
|
@ -79,13 +85,13 @@ jobs:
|
|||
|
||||
cd minecraft
|
||||
else
|
||||
mkdir /tmp/minecraft
|
||||
cd /tmp/minecraft
|
||||
mkdir /mnt/globalData/minecraft
|
||||
cd /mnt/globalData/minecraft
|
||||
wget -O docker-compose.yml https://raw.githubusercontent.com/CeciliaKelley33Mm/global/refs/heads/master/minecraft-compose.yml
|
||||
fi
|
||||
docker compose up -d &
|
||||
|
||||
cd /tmp/CeciliaKelley33Mm.github.io-main/backend
|
||||
cd /mnt/globalData/CeciliaKelley33Mm.github.io-main/backend
|
||||
npm i
|
||||
node index.js &
|
||||
|
||||
|
|
4
loop.sh
4
loop.sh
|
@ -105,7 +105,7 @@ check() {
|
|||
if [[ "$IS_GLOBAL" == "true" ]]; then
|
||||
command+="-f \"inputs[oldTailscaleHostname]=$hostname\""
|
||||
|
||||
cd /tmp/minecraft
|
||||
cd /mnt/globalData/minecraft
|
||||
|
||||
docker compose exec minecraft rcon-cli broadcast The server is stopping in 30 seconds. Please leave the server.
|
||||
|
||||
|
@ -115,7 +115,7 @@ check() {
|
|||
# like world files aren't latest or even file corruptions
|
||||
docker compose down
|
||||
|
||||
cd /tmp
|
||||
cd /mnt/globalData
|
||||
|
||||
# sudo is necessary because we run minecraft in a docker container
|
||||
sudo tar cf archive.tar.gz minecraft/
|
||||
|
|
Loading…
Reference in a new issue