Skip to main content

Retags a Container in a Container Registry without the need for Docker

Project description

Tagbot

Tagbot retags OCI Container Images without needing a full Docker Pull / Docker Push workflow by working directly with the registry API.

Usage

Local Usage

tagbot \
    --username example \
    --password password \
    --source example.azurecr.io/debian:latest \
    --tag v1.0.0

This would add an additional tag of v1.0.0 to example.azurecr.io/debian:latest. The container image can then be pulled with either example.azurecr.io/debian:latest, or example.azurecr.io/debian:v1.0.0

GitHub Actions Usage

name: release

on:
  push:
    tags: ["v[0-9]+.[0-9]+.[0-9]+"]

jobs:
  release:
    name: release
    strategy:
      matrix:
        environment: [staging, production]
    environment:
      name: ${{ matrix.environment }}
    uses: binkhq/tagbot/.github/workflows/retag.yaml@master
      with:
        username: example
        source: example.azurecr.io/${{ github.event.repository.name }}:${{ github.ref_name }}
        tag: v1.0.0
      secrets:
        password: ${{ secrets.ACR_PASSWORD }}

FAQ

  • Whats going on with ghcr.io/binkhq/tagbot?
    • This still exists, but is formally deprecated and will no longer recieve updates or support
  • Are Registries other than Azure Container Registry supported?
    • Azure Container Registry is the only officially supported Registry, but other simple registries like Docker Hub are expected to work just fine.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

container_tagbot-3.0.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

container_tagbot-3.0.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file container_tagbot-3.0.0.tar.gz.

File metadata

  • Download URL: container_tagbot-3.0.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.1 Linux/6.2.0-1018-azure

File hashes

Hashes for container_tagbot-3.0.0.tar.gz
Algorithm Hash digest
SHA256 ce11ae625e670958714d250d5ef9b37c6b7be36576dd3fca675c0dd228990981
MD5 285668f13b5f72ec13c844c05afd326c
BLAKE2b-256 eddafbc6c2fa12218d0c8bb20fd0bf4a295c32f6ad7963d9909882ea1cee14b1

See more details on using hashes here.

Provenance

File details

Details for the file container_tagbot-3.0.0-py3-none-any.whl.

File metadata

  • Download URL: container_tagbot-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.1 Linux/6.2.0-1018-azure

File hashes

Hashes for container_tagbot-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 accbc268af767b3776036fc91de09eb92350edd7b839d4d06c40c150d8a8a5ee
MD5 adade3f3f9511fc66dad60c71c585c0e
BLAKE2b-256 f3923427be13856ae62c8c2b6437e8d6f758a0cbf6739d1b6e8ad89b573bf803

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page