Skip to content

Utility that enables next or latest tags to be queried for ACR-based repositories

Notifications You must be signed in to change notification settings

blakyaks/acr-tag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ACR Tag

Acknowledgements

This application is adapted from the harbor_tag repository created by Iris Garcia of ConsenSys here

Description

acr_tag gives the current and/or the next semver tag for a given Azure Container Registry repository.

It allows the usage of environments with the following format:

EnvironmentRegexExample
dev^v[0-9]+\.[0-9]+.[0-9]+-dev\.[0-9]+$v1.0.1-dev.8
stagingv[0-9]+\.[0-9]+.[0-9]+-rc\.[0-9]+$v2.2.0-rc.10
prodv[0-9]+\.[0-9]+.[0-9]+$v3.0.5

Install

go build .

Usage

❯ ./acr-tag next --help
Based on the current tags of the image and the input from the user, generates the next tag

Usage:
  acr-tag next [flags]

Flags:
      --debug                Debug
  -e, --environment string   Environment [dev, staging, prod]
  -h, --help                 help for next
  -p, --password string      Password to authenticate to the registry
  -r, --registry string      Azure Container Registry URL
  -i, --repository string    Repository Image Name
  -t, --type string          Tag type [major, minor, patch, rc, dev]
  -u, --username string      Username to authenticate to the registry

About

Utility that enables next or latest tags to be queried for ACR-based repositories

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages