Skip to content

armgit / qm

Public Imported from GitHub
0

Multiplayer agent harness for work.

Publish images under a repo-nested GHCR namespace (#12)

Joshua France8d9370d3aedb
diff --git a/.github/workflows/release-package.yml b/.github/workflows/release-package.yml
index ff8c1e360..37667b1e0 100644
--- a/.github/workflows/release-package.yml
+++ b/.github/workflows/release-package.yml
@@ -47,12 +47,12 @@ jobs:
provenance: false
push: true
build-args: ${{ matrix.build-args }}
- tags: ghcr.io/yc-software/qm-${{ matrix.name }}:${{ github.sha }}
+ tags: ghcr.io/yc-software/qm/${{ matrix.name }}:${{ github.sha }}
cache-from: type=gha,scope=qm-${{ matrix.name }}
cache-to: type=gha,mode=max,scope=qm-${{ matrix.name }}
- name: Sign exact image
run: |
- image='ghcr.io/yc-software/qm-${{ matrix.name }}@${{ steps.build.outputs.digest }}'
+ image='ghcr.io/yc-software/qm/${{ matrix.name }}@${{ steps.build.outputs.digest }}'
cosign sign --yes "$image"
cosign verify "$image" \
--certificate-identity='https://github.com/${{ github.repository }}/.github/workflows/release-package.yml@refs/heads/main' \
diff --git a/test/release-workflows.test.ts b/test/release-workflows.test.ts
index 31398fdae..f7eaea747 100644
--- a/test/release-workflows.test.ts
+++ b/test/release-workflows.test.ts
@@ -38,7 +38,7 @@ test("the release signs private images without requiring anonymous registry acce
assert.match(workflow, /platforms: linux\/amd64\s+provenance: false/);
assert.match(
workflow,
- /image='ghcr\.io\/yc-software\/qm-\$\{\{ matrix\.name \}\}@\$\{\{ steps\.build\.outputs\.digest \}\}'\s+cosign sign --yes "\$image"\s+cosign verify "\$image"/,
+ /image='ghcr\.io\/yc-software\/qm\/\$\{\{ matrix\.name \}\}@\$\{\{ steps\.build\.outputs\.digest \}\}'\s+cosign sign --yes "\$image"\s+cosign verify "\$image"/,
);
assert.ok(workflow.indexOf("docker/login-action") < workflow.indexOf("docker/build-push-action"));
assert.ok(workflow.indexOf("docker/build-push-action") < workflow.indexOf("Sign exact image"));