Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions .github/workflows/publish-ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,9 @@ jobs:
{
echo "## rustpipe-sc GHCR digest"
echo ""
echo "linux/amd64. Pin this string. Do not float on \`latest\`. Do not \`docker build\` this image inside prairie-rna-stream."
echo "linux/amd64. Pin this string. Do not float on \`latest\`. Do not \`docker build\` this image inside prairie-rna-stream. GHCR is public; anonymous HEAD 401 is not private."
echo ""
echo '```'
echo "${IMAGE}:0.3.0@${{ steps.build.outputs.digest }}"
echo '```'
echo ""
echo "First package from GITHUB_TOKEN is private. Make it public:"
echo ""
echo '```'
echo "gh api --method POST -H 'Accept: application/vnd.github+json' \\"
echo " /user/packages/container/rustpipe-sc/visibility \\"
echo " -f visibility=public"
echo '```'
} >> "$GITHUB_STEP_SUMMARY"
4 changes: 2 additions & 2 deletions PACKET.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ No hashed `run.json` yet. `pipeline_timings.json` is the provenance file. A Prai
Pull the published linux/amd64 image. Never `docker build` this tree from prairie-rna-stream.

```
ghcr.io/jwg054000/rustpipe-sc:0.3.0@sha256:<digest from the GHCR publish job summary>
ghcr.io/jwg054000/rustpipe-sc:0.3.0@sha256:0f7164c538e49c8e8125299fe405e000ad9e9f6aba054142371cffdffbf98e1d
```

Until the first successful publish + public visibility click, that digest does not exist. See README (Container).
GHCR is public. See README (Container).
22 changes: 4 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,31 +73,17 @@ Without the `hdf5` feature, CSV input is still supported.

Published image: `ghcr.io/jwg054000/rustpipe-sc` (linux/amd64, HDF5 enabled).

**Digest-pin.** Downstream pipelines must `docker pull` a digest-pinned reference. They must **never** `docker build` this tree, never vendor this repo, and never compile rustpipe-sc inside prairie-rna-stream.
**Digest-pin.** Downstream pipelines must `docker pull` a digest-pinned reference. They must **never** `docker build` this tree, never vendor this repo, and never compile rustpipe-sc inside prairie-rna-stream. GHCR is public; do not float on `latest`. Anonymous `HEAD` without a token redeem still 401 — that is not private.

```
ghcr.io/jwg054000/rustpipe-sc:0.3.0@sha256:<digest from the GHCR publish job>
ghcr.io/jwg054000/rustpipe-sc:0.3.0@sha256:0f7164c538e49c8e8125299fe405e000ad9e9f6aba054142371cffdffbf98e1d
```

Do not float on `latest`. The publish workflow writes the digest to the Actions job summary. After the first successful push the package is **private** until made public:

```bash
# run publish (after this workflow exists on main)
gh workflow run publish-ghcr.yml --repo jwg054000/RustPipe-SC

# make the package pullable without a GHCR token
gh api --method POST -H "Accept: application/vnd.github+json" \
/user/packages/container/rustpipe-sc/visibility \
-f visibility=public
```

UI equivalent: [GHCR package settings](https://github.com/users/jwg054000/packages/container/package/rustpipe-sc) → Change visibility → Public.

```bash
docker pull ghcr.io/jwg054000/rustpipe-sc:0.3.0
docker pull ghcr.io/jwg054000/rustpipe-sc:0.3.0@sha256:0f7164c538e49c8e8125299fe405e000ad9e9f6aba054142371cffdffbf98e1d
docker run --rm \
-v "$PWD/in:/in:ro" -v "$PWD/out:/out" \
ghcr.io/jwg054000/rustpipe-sc:0.3.0 \
ghcr.io/jwg054000/rustpipe-sc:0.3.0@sha256:0f7164c538e49c8e8125299fe405e000ad9e9f6aba054142371cffdffbf98e1d \
pipeline --input /in/filtered_feature_bc_matrix.h5 --output /out
```

Expand Down
Loading