Add major and major.minor tags to docker images that have only major.minor.patch as tags available.
10K+
Add major and major.minor tags to docker images that have only major.minor.patch as tags available.
docker run --rm -it -v ~/.docker/config.json:/root/.docker/config.json oidatiftla/docker-tag-enhancer --login --registry registry.example.com
docker run --rm -it -v ~/.docker/config.json:/root/.docker/config.json oidatiftla/docker-tag-enhancer -s registry.example.com/name1 -d registry.example.com/name2 -f '^((?!-rc|^8\.|^9\.|^10\.|^11\.|^12\.).)*$'
By default, version components must not have leading zeros (0, 1, 2, ... 9, 10, ... but not 01). Use --allow-leading-zeros if your tags contain zero-padded numbers, e.g. 0.2609.0611.1310.
docker run --rm -it -v ~/.docker/config.json:/root/.docker/config.json oidatiftla/docker-tag-enhancer -s registry.example.com/name1 -d registry.example.com/name2 --allow-leading-zeros
For some reason (sourceโ , sourceโ ) the GITHUB_TOKEN needs to be encoded with base64:
...
permissions:
contents: read
packages: write
...
jobs:
job:
runs-on: ubuntu-latest
steps:
...
- name: Retrieve tags
run: |
ENCODED=$(echo -n "${{ secrets.GITHUB_TOKEN }}" | base64)
skopeo list-tags \
--registry-token="${ENCODED}" \
docker://${DOCKER_REGISTRY_IMAGE}
docker buildx create --name mybuilder --use --bootstrap
docker buildx build --push --platform linux/386,linux/amd64,linux/arm/v7,linux/arm64/v8 --pull -t oidatiftla/docker-tag-enhancer .
Content type
Image
Digest
sha256:b6d33920fโฆ
Size
115.1 MB
Last updated
3 days ago
docker pull oidatiftla/docker-tag-enhancer