-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: allow for categories with spaces * fix: trim version properly in entrypoint script * feat: move tcli to separate image * fix: add ca-certificates package * add debug to edit script * fix: pass categories and description as args rather than env vars * fix: use args for cfg_edit.js too * fix: don't remove newline characters * fix: include wget in tcli image * chore: add tests for publishing prebuilt mods * checkout again before second test * don't skip config step with prebuilt file * fix: limit description field to 256 characters * add categories for second test * remove prebuilt test
- Loading branch information
1 parent
b338183
commit f724966
Showing
8 changed files
with
46 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
FROM denoland/deno as setup | ||
WORKDIR / | ||
RUN ["apt", "update", "-yy"] | ||
RUN ["apt", "install", "wget", "-yy"] | ||
RUN ["wget", "-O", "tcli.tar.gz", "https://github.com/thunderstore-io/thunderstore-cli/releases/download/0.2.1/tcli-0.2.1-linux-x64.tar.gz"] | ||
RUN ["tar", "xvf", "tcli.tar.gz"] | ||
RUN ["mv", "-v", "tcli-0.2.1-linux-x64/tcli", "/bin/tcli"] | ||
FROM denoland/deno as cache | ||
ENV DENO_DIR=/var/tmp/deno_cache | ||
COPY ./cfg_edit.js /cfg_edit.js | ||
RUN deno cache /cfg_edit.js | ||
FROM ghcr.io/greentf/tcli | ||
ENV DENO_DIR=/var/tmp/deno_cache | ||
COPY --from=cache ${DENO_DIR} ${DENO_DIR} | ||
COPY ./entrypoint.sh /entrypoint.sh | ||
COPY ./cfg_edit.js /cfg_edit.js | ||
RUN ["chmod", "+x", "/entrypoint.sh"] | ||
RUN ["deno", "cache", "/cfg_edit.js"] | ||
ENTRYPOINT ["/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM denoland/deno | ||
RUN apt-get update && apt-get install -y wget && rm -rf /var/lib/apt/lists/* | ||
RUN ["wget", "-O", "tcli.tar.gz", "https://github.com/thunderstore-io/thunderstore-cli/releases/download/0.2.1/tcli-0.2.1-linux-x64.tar.gz"] | ||
RUN ["tar", "xvf", "tcli.tar.gz"] | ||
RUN ["mv", "-v", "tcli-0.2.1-linux-x64/tcli", "/bin/tcli"] | ||
ENTRYPOINT ["/bin/bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters