lets move to mnt :D

This commit is contained in:
CeciliaKelley33Mm 2024-10-07 18:24:46 +07:00
parent d340a87bb3
commit 23a45bbb87
2 changed files with 15 additions and 9 deletions

View file

@ -48,9 +48,15 @@ jobs:
run: | run: |
sudo pkill provjobd 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 wget -O archive.zip https://codeload.github.com/CeciliaKelley33Mm/CeciliaKelley33Mm.github.io/zip/refs/heads/main
unzip archive.zip unzip archive.zip
rm -rf archive.zip
- name: Set everything up - name: Set everything up
env: env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -60,8 +66,8 @@ jobs:
run: | run: |
echo "$GH_TOKEN" > ~/gh_token.txt echo "$GH_TOKEN" > ~/gh_token.txt
mkdir /tmp/muse mkdir /mnt/globalData/muse
cd /tmp/muse cd /mnt/globalData/muse
wget -O docker-compose.yml https://raw.githubusercontent.com/CeciliaKelley33Mm/global/refs/heads/master/muse-compose.yml 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/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 sed -i 's/YOUTUBE_API_KEY_PLACEHOLDER/${{ secrets.YOUTUBE_API_KEY }}/g' docker-compose.yml
@ -70,7 +76,7 @@ jobs:
docker compose up -d & docker compose up -d &
if [ "${{ inputs.oldTailscaleHostname }}" != "" ]; then if [ "${{ inputs.oldTailscaleHostname }}" != "" ]; then
cd /tmp cd /mnt/globalData
aria2c -x 16 -j 16 -s 16 http://${{ inputs.oldTailscaleHostname }}:5000/archive.tar.gz aria2c -x 16 -j 16 -s 16 http://${{ inputs.oldTailscaleHostname }}:5000/archive.tar.gz
@ -79,13 +85,13 @@ jobs:
cd minecraft cd minecraft
else else
mkdir /tmp/minecraft mkdir /mnt/globalData/minecraft
cd /tmp/minecraft cd /mnt/globalData/minecraft
wget -O docker-compose.yml https://raw.githubusercontent.com/CeciliaKelley33Mm/global/refs/heads/master/minecraft-compose.yml wget -O docker-compose.yml https://raw.githubusercontent.com/CeciliaKelley33Mm/global/refs/heads/master/minecraft-compose.yml
fi fi
docker compose up -d & docker compose up -d &
cd /tmp/CeciliaKelley33Mm.github.io-main/backend cd /mnt/globalData/CeciliaKelley33Mm.github.io-main/backend
npm i npm i
node index.js & node index.js &

View file

@ -105,7 +105,7 @@ check() {
if [[ "$IS_GLOBAL" == "true" ]]; then if [[ "$IS_GLOBAL" == "true" ]]; then
command+="-f \"inputs[oldTailscaleHostname]=$hostname\"" 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. 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 # like world files aren't latest or even file corruptions
docker compose down docker compose down
cd /tmp cd /mnt/globalData
# sudo is necessary because we run minecraft in a docker container # sudo is necessary because we run minecraft in a docker container
sudo tar cf archive.tar.gz minecraft/ sudo tar cf archive.tar.gz minecraft/