Compare commits

..

23 Commits

Author SHA1 Message Date
e5e78068f0 fix username for prod and staging workflows
All checks were successful
Deploy datapack to staging / Build (push) Successful in 5s
Deploy datapack to prod / Build (push) Successful in 6s
Deploy datapack to dev / Build (push) Successful in 6s
2025-03-09 00:48:50 -06:00
65a38df465 finish updating workflows
Some checks failed
Deploy datapack to dev / Build (push) Successful in 5s
Deploy datapack to staging / Build (push) Failing after 7s
2025-03-09 00:45:55 -06:00
19734bfa77 point to script on remote machine
All checks were successful
Deploy datapack to dev / Build (push) Successful in 6s
2025-03-08 22:59:40 -06:00
7706ac5c7f moving away from script file
All checks were successful
Deploy datapack to dev / Build (push) Successful in 5s
2025-03-08 22:54:39 -06:00
31f7c78b71 fix permissions
Some checks failed
Deploy datapack to dev / Build (push) Failing after 3s
2025-03-08 22:44:55 -06:00
88be764b12 update readme
Some checks failed
Deploy datapack to dev / Build (push) Failing after 4s
2025-03-08 22:43:56 -06:00
87b38de079 create new test script
Some checks failed
Deploy datapack to dev / Build (push) Failing after 4s
2025-03-08 22:41:19 -06:00
c4d05b0474 try changing the path again
Some checks failed
Deploy datapack to dev / Build (push) Failing after 4s
2025-03-08 22:34:22 -06:00
663beae976 change username
Some checks failed
Deploy datapack to dev / Build (push) Failing after 4s
2025-03-08 22:32:09 -06:00
4a8ffde03c and another
Some checks failed
Deploy datapack to dev / Build (push) Failing after 4s
2025-03-08 22:28:14 -06:00
39d48ab642 try another configuration
Some checks failed
Deploy datapack to dev / Build (push) Failing after 4s
2025-03-08 22:27:20 -06:00
476981d3ce test different script config with dev
Some checks failed
Deploy datapack to dev / Build (push) Failing after 4s
2025-03-08 22:18:08 -06:00
815b5218fd fix scripts path
Some checks failed
Deploy datapack to dev / Build (push) Failing after 4s
2025-03-08 20:16:42 -06:00
3d040bfba4 move scripts directory
Some checks failed
Deploy datapack to prod / Build (push) Failing after 3s
2025-03-08 20:13:59 -06:00
9d14aec7d3 move scripts directory 2025-03-08 20:13:45 -06:00
94120467a7 update staging and prod workflows to match
Some checks failed
Deploy datapack to prod / Build (push) Failing after 4s
2025-03-08 20:10:28 -06:00
40c65b677d update dev workflow
Some checks failed
Deploy datapack to prod / Build (push) Failing after 1m20s
2025-03-08 20:07:48 -06:00
349b8ec1d8 update README roadmap 2025-03-08 20:05:35 -06:00
356a06dd4c Merge branch 'master' into dev-database 2025-03-08 19:58:18 -06:00
ce0d8cc424 overhaul gitea workflows
- move action.yaml from root to workflows directory.
- rename to push_prod.
- add push_staging and push_dev.
2025-03-08 19:56:07 -06:00
31b2bf8cf5 Merge pull request 'Create workflow that can be configured to update production servers' (#3) from dev into master
All checks were successful
remote ssh command / Build (push) Successful in 4s
Reviewed-on: #3
2025-02-26 13:37:55 -06:00
1a9b650679 Merge pull request 'hotfix build script' (#2) from dev into master
Reviewed-on: #2
2025-02-26 01:00:49 -06:00
48bdeceb93 Merge pull request 'Convert codebase to JMC' (#1) from dev into master
Reviewed-on: #1
2025-02-26 00:51:23 -06:00
6 changed files with 37 additions and 8 deletions

View File

@ -0,0 +1,19 @@
name: Deploy datapack to dev
on:
push:
branches: [dev, dev-player-messages, dev-database]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Updating dev servers...
uses: appleboy/ssh-action@v1.2.1
with:
host: ${{ secrets.HOST }}
username: sadmin
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: |
cd /home/sadmin/containers/crafty/scripts/datapacks
./update_dev.sh dev

View File

@ -1,7 +1,7 @@
name: Deploy datapack to prod
on:
pull_request:
branches: master
push:
branches: [master]
jobs:
build:
name: Build
@ -11,7 +11,9 @@ jobs:
uses: appleboy/ssh-action@v1.2.1
with:
host: ${{ secrets.HOST }}
username: linuxserver.io
username: sadmin
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script_path: scripts/update_servers.sh
script: |
cd /home/sadmin/containers/crafty/scripts/datapacks
./update_dev.sh prod

View File

@ -1,15 +1,19 @@
name: remote ssh command
on: [push]
name: Deploy datapack to staging
on:
push:
branches: [staging]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: update server datapack folder
- name: Updating staging servers...
uses: appleboy/ssh-action@v1.2.1
with:
host: ${{ secrets.HOST }}
username: sadmin
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: whoami
script: |
cd /home/sadmin/containers/crafty/scripts/datapacks
./update_dev.sh stag

View File

@ -2,6 +2,9 @@
## Roadmap
- [ ] Database
- Will server the rest of datapack creation
- [ ] Serverside Coordinates Storage
- [ ] Team Development Event
- [ ] Implement Area naming
- [ ] Server annoucements

1
scripts/test.sh Executable file
View File

@ -0,0 +1 @@
whoami