Skip to content

Commit 26a7b23

Browse files
committed
feat: druid v2 scrolls
1 parent fe244fc commit 26a7b23

9 files changed

Lines changed: 38 additions & 40 deletions

File tree

.github/workflows/manual-release-all.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@ jobs:
1616
with:
1717
repository: "highcard-dev/backend-monorepo-go"
1818
latest: true
19-
fileName: "scrolls-registry"
19+
fileName: "druid"
2020
token: ${{ secrets.GO_REPO_TOKEN }}
21-
- run: chmod +x ./scrolls-registry
21+
- run: chmod +x ./druid
2222
- name: Building only version updates
23-
run: ./scrolls-registry build -d ./scrolls
23+
run: ./druid registry build --scrolls-dir ./scrolls
2424
- name: Pushing new scrolls
2525
shell: bash
2626
run: |
27-
./scrolls-registry push -d ./scrolls -t packages
28-
./scrolls-registry push -d ./scrolls -t registry-index
27+
./druid registry push --scrolls-dir ./scrolls -t packages
28+
./druid registry push --scrolls-dir ./scrolls -t registry-index
2929
- name: Pushing new scrolls i18n
30-
run: ./scrolls-registry push -d ./scrolls -t translations
30+
run: ./druid registry push --scrolls-dir ./scrolls -t translations
3131
- name: Cleanup
32-
run: ./scrolls-registry clean
32+
run: ./druid registry clean

.github/workflows/pr.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@ jobs:
2424
latest: true
2525
fileName: "scrolls-registry"
2626
token: ${{ secrets.GO_REPO_TOKEN }}
27-
- run: chmod +x ./scrolls-registry
27+
- run: chmod +x ./druid
2828
- name: Check current registry
29-
run: ./scrolls-registry print
29+
run: ./druid registry print
3030
- name: Building all
31-
run: ./scrolls-registry build -d ./scrolls
31+
run: ./druid registry build --scrolls-dir ./scrolls
3232
- name: Pushing new scrolls
3333
shell: bash
3434
run: |
35-
./scrolls-registry push -d ./scrolls -t packages
36-
./scrolls-registry push -d ./scrolls -t registry-index
35+
./druid registry push --scrolls-dir ./scrolls -t packages
36+
./druid registry push --scrolls-dir ./scrolls -t registry-index
3737
- name: Pushing new scrolls i18n
38-
run: ./scrolls-registry push -d ./scrolls -t translations
38+
run: ./druid registry push --scrolls-dir ./scrolls -t translations
3939
- name: Cleanup
40-
run: ./scrolls-registry clean
40+
run: ./druid registry clean

.github/workflows/release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@ jobs:
2020
with:
2121
repository: "highcard-dev/backend-monorepo-go"
2222
latest: true
23-
fileName: "scrolls-registry"
23+
fileName: "druid"
2424
token: ${{ secrets.GO_REPO_TOKEN }}
25-
- run: chmod +x ./scrolls-registry
25+
- run: chmod +x ./druid
2626
- name: Building only version updates
27-
run: ./scrolls-registry build -d ./scrolls -c
27+
run: ./druid registry build --scrolls-dir ./scrolls -c
2828
- name: Pushing new scrolls
2929
shell: bash
3030
run: |
31-
./scrolls-registry push -d ./scrolls -t packages
32-
./scrolls-registry push -d ./scrolls -t registry-index
31+
./druid registry push --scrolls-dir ./scrolls -t packages
32+
./druid registry push --scrolls-dir ./scrolls -t registry-index
3333
- name: Pushing new scrolls i18n
34-
run: ./scrolls-registry push -d ./scrolls -t translations
34+
run: ./druid registry push --scrolls-dir ./scrolls -t translations
3535
- name: Cleanup
36-
run: ./scrolls-registry clean
36+
run: ./druid registry clean

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

22
build-app:
3-
go install -o ./.bin/scrolls-registry ./scrolls-registry/scroll-registry.go
3+
go install -o ./.bin/druid registry ./druid/scroll-registry.go
44

55
install-app:
6-
go install ./scrolls-registry/scroll-registry.go
6+
go install ./druid/scroll-registry.go
77

88
build-all: install-app
99
scroll-registry build -e ./.env -d ./scrolls

scrolls/.sample/sample-variation/sample-version/scroll.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ processes:
55
main:
66
commands:
77
start:
8-
type: start
8+
should_change_status: start
99
procedures:
1010
- mode: exec
1111
data:
@@ -18,7 +18,7 @@ processes:
1818
data:
1919
- quit
2020
install:
21-
type: install
21+
should_change_status: start
2222
procedures:
2323
- mode: exec
2424
data:
@@ -30,4 +30,4 @@ processes:
3030
- 258550
3131
- +quit
3232
plugins:
33-
rcon_web_rust: {}
33+
rcon_web_rust: {}

scrolls/mc/mc-sp/1.17/scroll.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ processes:
55
main:
66
commands:
77
start:
8-
type: start
8+
should_change_status: start
99
procedures:
1010
- mode: exec
1111
data:
@@ -18,7 +18,7 @@ processes:
1818
data:
1919
- stop
2020
install:
21-
type: install
21+
should_change_status: start
2222
procedures:
2323
- mode: exec
2424
data:
@@ -46,18 +46,16 @@ processes:
4646
scroll-switch:
4747
commands:
4848
mc-sp@1.18:
49-
type: "scroll-switch"
5049
procedures:
5150
- mode: exec
5251
data:
5352
- sh
5453
- $SCROLL_DIR/scroll-switch/mc-sp@1.18/scroll-switch.sh
5554
mc-sp@1.19:
56-
type: "scroll-switch"
5755
procedures:
5856
- mode: exec
5957
data:
6058
- sh
6159
- $SCROLL_DIR/scroll-switch/mc-sp@1.19/scroll-switch.sh
6260
plugins:
63-
rcon: {}
61+
rcon: {}

scrolls/mc/mc-sp/1.18/scroll.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ processes:
55
main:
66
commands:
77
start:
8-
type: start
8+
should_change_status: start
99
procedures:
1010
- mode: exec
1111
data:
@@ -18,7 +18,7 @@ processes:
1818
data:
1919
- stop
2020
install:
21-
type: install
21+
should_change_status: start
2222
procedures:
2323
- mode: exec
2424
data:
@@ -53,4 +53,4 @@ processes:
5353
- sh
5454
- $SCROLL_DIR/scroll-switch/mc-sp@1.19/scroll-switch.sh
5555
plugins:
56-
rcon: {}
56+
rcon: {}

scrolls/rust/rust-oxide/latest/scroll.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ processes:
55
main:
66
commands:
77
start:
8-
type: start
8+
should_change_status: start
99
procedures:
1010
- mode: exec
1111
data:
@@ -18,7 +18,7 @@ processes:
1818
data:
1919
- quit
2020
install:
21-
type: install
21+
should_change_status: start
2222
procedures:
2323
- mode: exec
2424
data:
@@ -30,4 +30,4 @@ processes:
3030
- 258550
3131
- +quit
3232
plugins:
33-
rcon_web_rust: {}
33+
rcon_web_rust: {}

scrolls/rust/rust-vanilla/latest/scroll.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ processes:
55
main:
66
commands:
77
start:
8-
type: start
8+
should_change_status: start
99
procedures:
1010
- mode: exec
1111
data:
@@ -18,7 +18,7 @@ processes:
1818
data:
1919
- quit
2020
install:
21-
type: install
21+
should_change_status: start
2222
procedures:
2323
- mode: exec
2424
data:
@@ -30,4 +30,4 @@ processes:
3030
- 258550
3131
- +quit
3232
plugins:
33-
rcon_web_rust: {}
33+
rcon_web_rust: {}

0 commit comments

Comments
 (0)