Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e82f1b9a80 | |||
| ee5bee9817 | |||
| 01d2668281 | |||
| 0201011286 | |||
| 743562b092 |
@@ -19,7 +19,10 @@ jobs:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- uses: imjasonh/setup-crane@main
|
||||
- run: crane digest ubuntu
|
||||
- run: |
|
||||
crane digest ubuntu
|
||||
crane manifest ubuntu | jq
|
||||
crane copy ubuntu ghcr.io/${{ github.repository }}/ubuntu-copy
|
||||
|
||||
- name: Install old release
|
||||
uses: imjasonh/setup-crane@main
|
||||
|
||||
@@ -25,7 +25,7 @@ jobs:
|
||||
- run: |
|
||||
crane digest ubuntu
|
||||
crane manifest ubuntu | jq
|
||||
crane copy ubuntu ghcr.io/${{ github.owner
|
||||
crane copy ubuntu ghcr.io/${{ github.repository }}/ubuntu-copy
|
||||
```
|
||||
|
||||
_That's it!_ This workflow will inspect and copy the `ubuntu` image to your repo's GitHub container registry namespace.
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ runs:
|
||||
case ${{ inputs.version }} in
|
||||
tip)
|
||||
echo "Installing crane using go get"
|
||||
go get github.com/google/go-containerregistry/cmd/crane@main
|
||||
go install github.com/google/go-containerregistry/cmd/crane@main
|
||||
;;
|
||||
latest-release)
|
||||
tag=$(curl -s -u "username:${{ github.token }}" https://api.github.com/repos/google/go-containerregistry/releases/latest | jq -r '.tag_name')
|
||||
|
||||
Reference in New Issue
Block a user