Git Product home page Git Product logo

tag-push-action's People

Contributors

akhilerm avatar dependabot[bot] avatar rnsc avatar saniales avatar shahulsonhal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

tag-push-action's Issues

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

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/[email protected]
        with:
          src: ghcr.io/something/${{ github.ref_name }}/something:${{ env.SOMETHING_SHA }}
          dst: |
            registry.heroku.com/${{ env.HEROKU_APP }}/worker:latest

Cannot push to docker.io; get "404 Not Found" error in the middle of push

Hello!

I'm trying to push images from ghcr.io to docker.io and I get the following error:

elapsed: 12.0s                                                                    total:  456.0  (38.0 MiB/s)                                      
ctr: failed commit on ref "manifest-sha256:afbf5e46ea9d4957bbde55c336f42f5a229a28ab8295fadff6ccc1d6478d7a7d": unexpected status: 404 Not Found
panic: exit status 1

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

Here's the relevant snippet of my github actions:

      # copy image from ghcr to dockerhub
      - name: Push image to alternate registries
        # push to registry on main branch only
        if: github.ref == 'refs/heads/main'
        uses: akhilerm/[email protected]
        with:
          src: ghcr.io/ninerealmlabs/base_env:python-${{ steps.tag.outputs.tag }}-${{ steps.sha.outputs.sha }}
          dst: |
            docker.io/ninerealmlabs/base_env:python-${{ steps.tag.outputs.tag }}
            docker.io/ninerealmlabs/base_env:python-${{ steps.tag.outputs.tag }}-${{ steps.sha.outputs.sha }}

add support for running the action on ARM self hosted runners

Currently the docker image akhilerm/repo-copy:latest that is being used in the github action has only linux/amd64 support. This restricts the action from being used on arm64 self hosted runners.

What needs to be done:

  • Add a new github workflow in repo-copy, so that multiple arch images are created and uploaded to dockerhub
  • Use this image in the github action, so that it enables usage of action on arm hosts also.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.