make error more clear
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/tag/woodpecker Pipeline failed Details

main v0.3
Ariadne Conill 2022-08-04 17:13:30 -05:00
parent abcf8561ff
commit efccae0782
1 changed files with 6 additions and 3 deletions

View File

@ -65,10 +65,13 @@ func main() {
func run(c *cli.Context) error {
user := c.String("username")
pass := c.String("password")
if user == "" {
return errors.New("username required")
}
if user == "" || pass == "" {
return errors.New("username and password required")
pass := c.String("password")
if pass == "" {
return errors.New("password required")
}
reg, err := name.NewRegistry(c.String("registry"))