Skip to content

Get next tag for an image in a Harbor Docker registry

Notifications You must be signed in to change notification settings

iris-garcia/harbor_tag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Harbor Tag

Description

harbor_tag gives the current and/or the next semver tag for a given Harbor 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

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

Usage:
  harbor_tag next [flags]

Flags:
      --debug                Debug
  -e, --environment string   Envrionment [dev, staging, prod]
  -h, --help                 help for next
  -p, --password string      Password to authenticate in the registry
      --project string       Harbor project
  -r, --registry string      Harbor registry
      --repository string    Harbor repository
  -t, --type string          Tag type [major, minor, patch, rc, dev]
  -u, --username string      Username to authenticate in the registry

About

Get next tag for an image in a Harbor Docker registry

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages