Skip to content

Commit

Permalink
Rewrite to move to full metadata upload (#2)
Browse files Browse the repository at this point in the history
* Rewrite

Signed-off-by: Joshua Castle <[email protected]>

* Update Dockerfile

Signed-off-by: Joshua Castle <[email protected]>

* Update Dockerfile

Signed-off-by: Joshua Castle <[email protected]>

* Use npx for ncc

Signed-off-by: Joshua Castle <[email protected]>

* Update Dockerfile

Signed-off-by: Joshua Castle <[email protected]>

* .value is no longer used

Signed-off-by: Joshua Castle <[email protected]>

* Log errors as errors

Signed-off-by: Joshua Castle <[email protected]>

---------

Signed-off-by: Joshua Castle <[email protected]>
  • Loading branch information
Kas-tle authored Apr 18, 2024
1 parent bd32249 commit 3e061c4
Show file tree
Hide file tree
Showing 11 changed files with 301 additions and 3,523 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

- name: Fix Docker environment variables
run: |
Expand Down
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,8 @@ dist
# End of https://www.toptal.com/developers/gitignore/api/node

uploads/
storage/
storage/
yarn.lock
package-lock.json
dist/
staging/
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@ FROM node:lts-alpine
RUN apk update \
&& apk add git

ENV NODE_ENV=production

ENV STORAGE_DIR=/app/storage
ENV INPUT_DIR=/app/uploads

WORKDIR /app

COPY . .

RUN npm install --production
RUN npm install
RUN npx ncc build bibliothek-cli.ts -m -t -s
RUN rm -rf node_modules

ENV NODE_ENV=production

CMD [ "node", "monitor.js" ]
CMD [ "node", "--enable-source-maps", "dist/index.js" ]
File renamed without changes.
45 changes: 41 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,47 @@ Environment variables required for use
## Example `metadata.json`
```json
{
"project": "floodgate",
"version": "2.2.2",
"id": 22,
"commit": "089b9a7e90c0771e5fddb0fddcb794455b20e1bb"
"project": "geyser",
"repo": "Geyser",
"version": "2.2.3",
"number": 3,
"changes": [
{
"commit": "88a2ca61fa8d2bad709bd5eef44bd197b4a4743a",
"summary": "Include repo",
"message": "Include repo"
}
],
"downloads": {
"bungeecord": {
"name": "Geyser-BungeeCord.jar",
"sha256": "ecbb23039ee4f2930c794083fc29952289befd1080bd9f8198641f0d380ed15c"
},
"fabric": {
"name": "Geyser-Fabric.jar",
"sha256": "0c2c4acda8da587f4d5b48a1df514e0a9afeedb6b4e389d27e6d16a26d53b18e"
},
"neoforge": {
"name": "Geyser-NeoForge.jar",
"sha256": "401dda344a11252145c0744990e825ea2cdb8ea303fa116517505363ace465c2"
},
"spigot": {
"name": "Geyser-Spigot.jar",
"sha256": "04c25e372503dde5c0dfcfa715798a746bed33670af8aa727c5e0b2b9f8c46bb"
},
"standalone": {
"name": "Geyser-Standalone.jar",
"sha256": "5cc6d8a992ee17d99a9186615ea31566f4afe102f8adf719726a778c133e9519"
},
"velocity": {
"name": "Geyser-Velocity.jar",
"sha256": "49e6186c5f0a093d5b038f515e05e45ac73f6262373dbf76e77a96c0e179aff3"
},
"viaproxy": {
"name": "Geyser-ViaProxy.jar",
"sha256": "3a9b6985e10d806a70f4d0892672c073ac31c6a74b15be3e4cbb0121c6e58087"
}
}
}
```

Expand Down
152 changes: 0 additions & 152 deletions bibliothek-cli.js

This file was deleted.

Loading

0 comments on commit 3e061c4

Please sign in to comment.