akhilerm / tag-push-action

Github action to copy/retag multiarch images from one registry to another
MIT License
24 stars 11 forks source link

Failed to copy index: PUT on manifest file when copying dockerimage from ghcr to heroku #299

Open xcfw opened 1 year ago

xcfw commented 1 year ago

I see this error:

Error: failed to copy index: PUT https://registry.heroku.com/v2/something-app/worker/manifests/sha256:235kj43klj53kljlksgdfjsdjgij428010jfaqpoirjfanvkagj48g590q: UNSUPPORTED: The operation is unsupported.
panic: exit status 1

goroutine 1 [running]:
main.main()
    /go/src/github.com/akhilerm/repo-copy/main.go:20 +0x15a
Error: The process '/usr/bin/docker' failed with exit code 2

When performing this steps:

     - name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v2
        with:
          version: latest
          install: true

     - name: Login Heroku-Registry
        uses: docker/login-action@v2
        with:
          registry: 'registry.heroku.com'
          username: ${{ something.HEROKU_UIGUR_LOGIN }}
          password: ${{ something.HEROKU_KLYUCH }}

      - name: Copy Something image from GHCR to Heroku
        uses: akhilerm/tag-push-action@v2.1.0
        with:
          src: ghcr.io/something/${{ github.ref_name }}/something:${{ env.SOMETHING_SHA }}
          dst: |
            registry.heroku.com/${{ env.HEROKU_APP }}/worker:latest
akhilerm commented 1 year ago

Is the image that you are trying to copy to registry.heroku.com available in ghcr.io