Skip to content

Commit

Permalink
Update image locations in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasper-Ben committed Aug 16, 2024
1 parent 2fb3e26 commit 7eb8ade
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
16 changes: 11 additions & 5 deletions cmd/crane/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ steps:

## Images

You can also use crane as docker image
You can also use crane as docker image. Newer releases are published in the GitHub container registry:

```sh
$ docker run --rm gcr.io/go-containerregistry/crane ls ubuntu
docker run --rm ghcr.io/google/go-containerregistry/crane ls ubuntu
10.04
12.04.5
12.04
Expand All @@ -99,10 +99,16 @@ $ docker run --rm gcr.io/go-containerregistry/crane ls ubuntu
And it's also available with a shell, at the `:debug` tag:

```sh
docker run --rm -it --entrypoint "/busybox/sh" gcr.io/go-containerregistry/crane:debug
docker run --rm -it --entrypoint "/busybox/sh" ghcr.io/google/go-containerregistry/crane:debug
```

Tagged debug images are available at `gcr.io/go-containerregistry/crane/debug:[tag]`.
Tagged debug images are available at `ghcr.io/google/go-containerregistry/crane/debug:[tag]`.

Note that some older releases are only available in the google container registry, respectively at:

- `gcr.io/go-containerregistry/crane`
- `gcr.io/go-containerregistry/crane:debug`
- `gcr.io/go-containerregistry/crane/debug:[tag]`

### Using with GitLab

Expand All @@ -114,7 +120,7 @@ docker-tag-latest:
refs:
- main
image:
name: gcr.io/go-containerregistry/crane:debug
name: ghcr.io/google/go-containerregistry/crane:debug
entrypoint: [""]
script:
- crane auth login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
Expand Down
6 changes: 3 additions & 3 deletions cmd/gcrane/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ gcrane gc gcr.io/${PROJECT_ID}/repo | xargs -n1 gcrane delete
You can also use gcrane as docker image

```sh
$ docker run --rm gcr.io/go-containerregistry/gcrane ls gcr.io/google-containers/busybox
$ docker run --rm ghcr.io/google/go-containerregistry/gcrane ls gcr.io/google-containers/busybox
gcr.io/google-containers/busybox@sha256:4bdd623e848417d96127e16037743f0cd8b528c026e9175e22a84f639eca58ff
gcr.io/google-containers/busybox:1.24
gcr.io/google-containers/busybox@sha256:545e6a6310a27636260920bc07b994a299b6708a1b26910cfefd335fdfb60d2b
Expand All @@ -59,7 +59,7 @@ gcr.io/google-containers/busybox:latest
And it's also available with a shell, at the `:debug` tag:

```sh
docker run --rm -it --entrypoint "/busybox/sh" gcr.io/go-containerregistry/gcrane:debug
docker run --rm -it --entrypoint "/busybox/sh" ghcr.io/google/go-containerregistry/gcrane:debug
```

Tagged debug images are available at `gcr.io/go-containerregistry/gcrane/debug:[tag]`.
Tagged debug images are available at `ghcr.io/google/go-containerregistry/gcrane/debug:[tag]`.

0 comments on commit 7eb8ade

Please sign in to comment.