From 743562b092b0e9d26f4b4b2217383ac827e3fbe3 Mon Sep 17 00:00:00 2001 From: Jason Hall Date: Fri, 23 Jul 2021 11:34:26 -0400 Subject: [PATCH] fix readme, have action copy to ghcr.io --- .github/workflows/use-action.yaml | 5 ++++- README.md | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/use-action.yaml b/.github/workflows/use-action.yaml index 8c302d1..f762f30 100644 --- a/.github/workflows/use-action.yaml +++ b/.github/workflows/use-action.yaml @@ -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.owner }}/${{ github.repo }}/ubuntu-copy - name: Install old release uses: imjasonh/setup-crane@main diff --git a/README.md b/README.md index 2efbb91..e9a2d35 100644 --- a/README.md +++ b/README.md @@ -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.owner }}/${{ github.repo }}/ubuntu-copy ``` _That's it!_ This workflow will inspect and copy the `ubuntu` image to your repo's GitHub container registry namespace.