mirror of
https://github.com/notherealmarco/coredns-deployment.git
synced 2025-05-05 12:32:34 +02:00
move from docker image ID to docker image SHA256 (#158)
This commit is contained in:
parent
c828c68740
commit
9ebcb064fd
3 changed files with 42 additions and 42 deletions
|
@ -12,21 +12,21 @@ import (
|
|||
func NewReleasedCmd() *cobra.Command {
|
||||
releasedCmd := &cobra.Command{
|
||||
Use: "released",
|
||||
Short: "Determines whether your Docker Image ID of a CoreDNS release is valid or not",
|
||||
Short: "Determines whether your Docker Image SHA of a CoreDNS release is valid or not",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
image, _ := cmd.Flags().GetString("dockerImageID")
|
||||
image, _ := cmd.Flags().GetString("dockerImageSHA")
|
||||
result := migration.Released(image)
|
||||
|
||||
if result {
|
||||
fmt.Println("The docker image ID is valid")
|
||||
fmt.Println("The docker image SHA is valid")
|
||||
} else {
|
||||
fmt.Println("The docker image ID is invalid")
|
||||
fmt.Println("The docker image SHA is invalid")
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
releasedCmd.Flags().String("dockerImageID", "", "Required: The docker image ID you want to check. ")
|
||||
releasedCmd.MarkFlagRequired("dockerImageID")
|
||||
releasedCmd.Flags().String("dockerImageSHA", "", "Required: The docker image SHA you want to check. ")
|
||||
releasedCmd.MarkFlagRequired("dockerImageSHA")
|
||||
|
||||
return releasedCmd
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue