Skip to content

Commit c3de192

Browse files
committed
fix(nightly): push to GHCR from artifacts dir so layer titles are bare filenames
ORAS records file paths as layer title annotations verbatim. Pushing 'artifacts/*.gz' stored titles as 'artifacts/sentry-linux-x64.gz', but findLayerByFilename() searches for 'sentry-linux-x64.gz' (no prefix). Fix: use working-directory: artifacts so the glob expands to bare filenames like 'sentry-linux-x64.gz'.
1 parent eb5d7f0 commit c3de192

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,13 +269,18 @@ jobs:
269269
run: echo "${{ secrets.GITHUB_TOKEN }}" | oras login ghcr.io -u ${{ github.actor }} --password-stdin
270270

271271
- name: Push to GHCR
272+
# Push from inside the artifacts directory so ORAS records bare
273+
# filenames (e.g. "sentry-linux-x64.gz") as layer titles, not
274+
# "artifacts/sentry-linux-x64.gz". The CLI matches layers by
275+
# filename in findLayerByFilename().
276+
working-directory: artifacts
272277
run: |
273278
VERSION="${{ needs.changes.outputs.nightly-version }}"
274279
oras push ghcr.io/getsentry/cli:nightly \
275280
--artifact-type application/vnd.sentry.cli.nightly \
276281
--annotation "org.opencontainers.image.source=https://github.com/getsentry/cli" \
277282
--annotation "version=${VERSION}" \
278-
artifacts/*.gz
283+
*.gz
279284
280285
test-e2e:
281286
name: E2E Tests

0 commit comments

Comments
 (0)