akhilerm / tag-push-action Goto Github PK
View Code? Open in Web Editor NEWGithub action to copy/retag multiarch images from one registry to another
License: MIT License
Github action to copy/retag multiarch images from one registry to another
License: MIT License
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
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 }}
It would be amazing to have this action output the docker image digests for the destination images.
GitHub Actions workflows using this action now receive a warning that Node.js 16 actions are deprecated.
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: akhilerm/tag-push-action. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Node.js 12 actions are deprecated. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/. Please update the following actions to use Node.js 16
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.