diff --git a/nats-box.yaml b/nats-box.yaml new file mode 100644 index 00000000000..d0d54a571e4 --- /dev/null +++ b/nats-box.yaml @@ -0,0 +1,45 @@ +package: + name: nats-box + version: 0.17.0 + epoch: 0 + description: NATS utilities toolbox. + dependencies: + runtime: + - bash + - ca-certificates + - curl + - figlet + - jq + copyright: + - license: Apache-2.0 + +environment: + contents: + packages: + - busybox + +pipeline: + - uses: git-checkout + with: + repository: https://github.com/nats-io/nats-box + tag: v${{package.version}} + expected-commit: dd2fba50b95c5a8b708bc23bd3ed7ee068cef2cc + + - runs: | + mkdir -p ${{targets.destdir}}/etc/profile.d + sed -i 's/^.*MARKER-REPLACE-LINE-IN-CI.*/echo "nats-box v${{package.version}}" >\&2/' profile.sh + install -Dm755 profile.sh ${{targets.destdir}}/etc/profile.d + install -Dm755 entrypoint.sh ${{targets.destdir}}/entrypoint.sh + +update: + enabled: true + github: + identifier: nats-io/nats-box + strip-prefix: v + +test: + pipeline: + - name: "Verify entrypoint.sh and profile.sh files" + runs: | + test -s "../../etc/profile.d/profile.sh" + test -s "../../entrypoint.sh"