Skip to content

Commit d4eca0b

Browse files
committed
fix(ci): pin druid cli for lgsm prebuild
1 parent 7ff06aa commit d4eca0b

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

AGENTS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Context for humans and coding agents working in this repository.
1212

1313
- `.github/workflows/release.yml` installs `druid` from [highcard-dev/druid-cli](https://github.com/highcard-dev/druid-cli), validates scrolls, logs into the registry, pushes **categories**, then pushes individual scrolls.
1414
- When adding a new scroll family, you usually need both a **Push Categories** line (for that family’s `.meta`) and **Pushing new scrolls** lines for each version directory.
15+
- All production scroll/artifact changes must go through CI/CD. Do not manually push production scrolls or mutate production registry state unless explicitly authorized for an emergency; follow up with a repo change so CI is source of truth again.
1516

1617
## `druid registry push category` — three positional arguments
1718

scripts/prebuild/prebuild.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ set -e
44
TAG=$1
55
echo "Tag: $TAG"
66

7+
DRUID_CLI_VERSION=${DRUID_CLI_VERSION:-v0.1.227}
8+
echo "Druid CLI Version: $DRUID_CLI_VERSION"
9+
710
TMP_VOLUME_NAME=lgsm-prebuild-$(date +%s)
811

912
docker volume rm $TMP_VOLUME_NAME || true
1013

11-
docker run --rm -v $TMP_VOLUME_NAME:/app/resources bash sh -c 'wget -O /app/resources/druid-install-command.sh https://github.com/highcard-dev/druid-cli/releases/latest/download/druid-install-command.sh && mkdir -p /app/resources/deployment && chmod +x /app/resources/druid-install-command.sh && chown 1000:1000 -R /app/resources/'
14+
docker run --rm -v $TMP_VOLUME_NAME:/app/resources -e CHANNEL="$DRUID_CLI_VERSION" bash sh -c 'wget -O /app/resources/druid-install-command.sh "https://github.com/highcard-dev/druid-cli/releases/${CHANNEL}/download/druid-install-command.sh" && mkdir -p /app/resources/deployment && chmod +x /app/resources/druid-install-command.sh && chown 1000:1000 -R /app/resources/'
1215

1316
echo "Pulling scroll"
1417
docker run --rm -v $TMP_VOLUME_NAME:/app/resources --entrypoint /app/resources/druid-install-command.sh -w /app/resources/deployment artifacts.druid.gg/druid-team/druid:latest-nix-steamcmd registry pull artifacts.druid.gg/druid-team/scroll-lgsm:${TAG}server

0 commit comments

Comments
 (0)