Skip to content

Commit

Permalink
Make container registry lowercase
Browse files Browse the repository at this point in the history
GitHub doesn't support our `TraceMachina` name for the registry.
  • Loading branch information
aaronmondal committed Dec 5, 2023
1 parent 697cddf commit 75b5343
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ might take a few minutes to publish the latest image.
export LATEST=$(nix eval github:TraceMachina/native-link#image.imageTag --raw)

# Verify the signature
cosign verify ghcr.io/TraceMachina/native-link:${LATEST} \
cosign verify ghcr.io/tracemachina/native-link:${LATEST} \
--certificate-identity=https://github.com/TraceMachina/native-link/.github/workflows/image.yaml@refs/heads/main \
--certificate-oidc-issuer=https://token.actions.githubusercontent.com
```
Expand All @@ -57,7 +57,7 @@ For use in production pin the image to a specific revision:
export PINNED_TAG=$(nix eval github:TraceMachina/native-link/<revision>#image.imageTag --raw)
# Verify the signature
cosign verify ghcr.io/TraceMachina/native-link:${PINNED_TAG} \
cosign verify ghcr.io/tracemachina/native-link:${PINNED_TAG} \
--certificate-identity=https://github.com/TraceMachina/native-link/.github/workflows/image.yaml@refs/heads/main \
--certificate-oidc-issuer=https://token.actions.githubusercontent.com
```
Expand Down
4 changes: 2 additions & 2 deletions tools/publish-ghcr.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pkgs.writeShellScriptBin "publish-ghcr" ''
# didn't change.
IMAGE_TAG=$(nix eval .#image.imageTag --raw)
TAGGED_IMAGE=''${GHCR_REGISTRY}/''${GHCR_IMAGE_NAME}:''${IMAGE_TAG}
TAGGED_IMAGE=''${GHCR_REGISTRY}/''${GHCR_IMAGE_NAME,,}:''${IMAGE_TAG}
$(nix build .#image --print-build-logs --verbose) \
&& ./result \
Expand All @@ -35,7 +35,7 @@ pkgs.writeShellScriptBin "publish-ghcr" ''
${pkgs.cosign}/bin/cosign \
sign \
--yes \
''${GHCR_REGISTRY}/''${GHCR_IMAGE_NAME}@$( \
''${GHCR_REGISTRY}/''${GHCR_IMAGE_NAME,,}@$( \
${pkgs.skopeo}/bin/skopeo \
inspect \
--format "{{ .Digest }}" \
Expand Down

0 comments on commit 75b5343

Please sign in to comment.